0
<?php 

$connect = mysql_connect("localhost","root","");

$db_list = mysql_list_dbs($connect);

echo "The list of database are: <br>";

while ($row = mysql_fetch_object($db_list)) 
    {
        echo $row-> Database. "<br>";
    }

?>

echo $row-> Database. "
";

what this line is telling .. what does this -> mean

mario.van.zadel
  • 2,919
  • 14
  • 23

2 Answers2

1

check out this link for more information: http://php.net/manual/en/language.oop5.properties.php

the short of it is they are used to interact with properties and functions within an object or class.

Kaylined
  • 655
  • 6
  • 15
1

-> Symbol is used to access an object's property. Example if i have a user object that contains the property "name", "age". To access them i can do $user->name, $user->age.

Prem Raj
  • 849
  • 4
  • 15