Forum Moderators: coopster
I'm seeing PHP code that looks like this:
$var->some_name
As I understand it, this is a variable named 'var' and, well, that's all I know. What kind of operator ( -> ) is that in between? And what's the 'some_name' part that follows? Is that another variable or a function name?
I actually have quite a bit of PHP experience. I just don't know what that kind of code refers to. If you could just tell me what to Google for, I could take it from there.
$var is the object
-> is the bizarre syntax php decided to use for objects
some_name is a member variable contained in the object