Page 1 of 1

What does this syntax do or mean?

Posted: Fri Nov 18, 2011 3:58 pm
by Markto
I frequently encounter this syntax, but I don't know what it does or mean, so I am having difficulty looking it up.

it involves the "->" symbol and is usually something like

$variable->isfunction()

or maybe

$variable1->$variable2

I could be using it wrong here. Can someone explain this to me and what this syntax is supposed to do?

Re: What does this syntax do or mean?

Posted: Fri Nov 18, 2011 4:12 pm
by Eric!
Check out Ojects and how to use their methods/etc.

Re: What does this syntax do or mean?

Posted: Tue Nov 22, 2011 3:38 pm
by mixahlos
"$variable" is an Object ( Objects are defined as Classes )
"isfuction()" is a method (function) of the class $variable.
"->" is the way to acces a property (variable) or method (function) of a class.
so this code,
is calling the function of the object.

Eric! posted the link to read aabout Objects ;)