what does -> mean

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
kevinwinters
Forum Newbie
Posts: 20
Joined: Wed Jan 06, 2010 8:31 pm

what does -> mean

Post 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
User avatar
flying_circus
Forum Regular
Posts: 732
Joined: Wed Mar 05, 2008 10:23 pm
Location: Sunriver, OR

Re: what does -> mean

Post 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
kevinwinters
Forum Newbie
Posts: 20
Joined: Wed Jan 06, 2010 8:31 pm

Re: what does -> mean

Post by kevinwinters »

Thank You
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Re: what does -> mean

Post by Weirdan »

flying_circus wrote:Not sure if it has a technical name
It has. It's called 'member access operator'.
Post Reply