Page 1 of 1

what does -> mean

Posted: Tue Mar 09, 2010 8:07 pm
by kevinwinters
Just beginning to learn PHP and I have come across something I am not sure of.

Here is a piece of code:

if(!$user->isAuth()

Now I can figure out what it implies but I am not able to Google it to see exactly what the meaning of the "->" shortcut is exactly

Could someone help me with that?

Thanks

Kevin

Re: what does -> mean

Posted: Tue Mar 09, 2010 8:13 pm
by flying_circus
Not sure if it has a technical name, but its the operator used to access properties or methods of a class.

Classes - The Basics

Re: what does -> mean

Posted: Tue Mar 09, 2010 8:31 pm
by kevinwinters
Thank You

Re: what does -> mean

Posted: Wed Mar 10, 2010 3:22 am
by Weirdan
flying_circus wrote:Not sure if it has a technical name
It has. It's called 'member access operator'.