Re: Using -> to access hash elements
| From: | Bogdan Stancescu | Date: | Sat, 14 Dec 2002 02:58:59 +0000 |
| Subject: | Re: Using -> to access hash elements | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-128244@lists.php.net to get a copy of this message | ||
http://www.php.net/manual/en/language.oop.php
William Martell wrote:
Can someone shed some light on the '->' syntax seen below. Is this like similar to Perl '=>' syntax to access hash key value pairs? Thank you one and all. [snip] // print mailing list while($data = mysql_fetch_object($result)){ print($data->name . ", " . $data->address . ", " . $data->city . ", " . $data->state . ", " . $data->zip . "\n"); } [/snip]