0

Hi everyone

Forgive me if I am asking a foolish thing, i have seen several time this sign "->" in php.

example is below

$total_report = round($rows->turnover_cost_annual);

It is bold here "ound($rows->turno" can anyone please let me know how it is pronounced and whats its use in php. Any usefull tutorial on this?

Thanks in advance.

4
Contributors
5
Replies
6
Views
7 Years
Discussion Span
Last Post by dalip_007
0
Array ( [0] => 10 [1] => 20 [2] => 30 [3] => 40 ) 100

do you aware of above? The above is also used for the reference to the value within the array index.

while($row  = mysql_fetch_object($result)) { 
        echo "<tr>"; 
        echo "<td>".$row->id."</td>"; 
        echo "<td>".$row->country."</td>"; 
        echo "<td>".$row->animal."</td>"; 
        echo "</tr>"; 
    }

The above code from the database the field values were displayed here $row is the reference to that id.

These symbols sometimes be called as POINTERS

0
Array ( [0] => 10 [1] => 20 [2] => 30 [3] => 40 ) 100

do you aware of above? The above is also used for the reference to the value within the array index.

while($row  = mysql_fetch_object($result)) { 
        echo "<tr>"; 
        echo "<td>".$row->id."</td>"; 
        echo "<td>".$row->country."</td>"; 
        echo "<td>".$row->animal."</td>"; 
        echo "</tr>"; 
    }

The above code from the database the field values were displayed here $row is the reference to that id.

These symbols sometimes be called as POINTERS

Thanks for being detailed.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.