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?
What does this syntax do or mean?
Moderator: General Moderators
Re: What does this syntax do or mean?
Check out Ojects and how to use their methods/etc.
Re: What does this syntax do or mean?
"$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
"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