Forum Moderators: coopster

Message Too Old, No Replies

what does "->" means?

         

kenchix1

3:20 pm on Jun 16, 2005 (gmt 0)

10+ Year Member



I see some codes with "->" symbol, what does it mean?

something like :

$variable->blahblah

or

$variable=$variable->functionname($variable)

im confused.

Gibble

3:24 pm on Jun 16, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



It's for object oriented programming.

Meaning that
$variable=$object->functionname($variable)

The variable is set to the return value of functionname in the object.

do a google search for "php oop tutorial" and you should find some info on object oriented programming in PHP :)