Page 1 of 1

->

Posted: Sat Jun 07, 2008 4:44 am
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

Re: ->

Posted: Sat Jun 07, 2008 5:07 am
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

Re: ->

Posted: Sat Jun 07, 2008 5:38 am
by rd321
Thanks onion2k,

I appreciate the pointer :)