->

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
rd321
Forum Newbie
Posts: 2
Joined: Sat Jun 07, 2008 4:40 am

->

Post by rd321 »

Hey Guys, long time lurker :)

I've been looking all morning for a really good explanation of what -> actually means, but no joy so far.

I dont know what this expression is actually called and a search on the "->" or "->" obviously bring up nothing.

To date I've not used this expression but I have an interview on tuesday and this is just buggin me that i cant find out what it is?

Any help would be greatly appreciated.

Rob
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Re: ->

Post by onion2k »

It's the object access operator. You use it to access methods and variables inside of objects.

You'll need to learn all of this: http://uk3.php.net/manual/en/language.oop5.php
rd321
Forum Newbie
Posts: 2
Joined: Sat Jun 07, 2008 4:40 am

Re: ->

Post by rd321 »

Thanks onion2k,

I appreciate the pointer :)
Post Reply