-> is for classes / objects...
It points to a variable in the object class (this case $path) or
a function like $d->setColor("green");
http://us4.php.net/manual/en/language.oop.php
OOP is hella cool when you "get it". But it can also be overkill for many
things too. Basically I think of it this way, if I need to store 'records'
like with a database, but don't need a database per se, OOP is perfect. For
a great example, I would refer you to my simple DHCP web page project:
http://daevid.com/examples/dhcp/ you can download the .tgz file at the
bottom and see how it's structured.
Daevid Vincent
http://daevid.com
> -----Original Message-----
> From: Dave Reinhardt [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, December 10, 2003 1:26 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] how and when to use ->
>
> how and when to use -> as in
> echo "Path: ".$d->path."<br>\n";
> what does this mean and how is it used?
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php