Page 1 of 1

What the heck is "->"?

Posted: Tue May 20, 2008 6:56 pm
by fotan
Hi. I'm trying to figure out a bit of code and can't find anything to tell me what something means.

$map->showInvalidPoints

It's stuck in the middle of PHP code, but I can't say that I've ever really seen the ->. I'm thinking it's something to do with arrays?

Can someone help me out?

Thanks,

Matt

Re: What the heck is "->"?

Posted: Tue May 20, 2008 6:59 pm
by Christopher
That heck is how you would access the public property $showInvalidPoints in the object $map. From within the class you would use $this->showInvalidPoints.

Re: What the heck is "->"?

Posted: Wed May 21, 2008 6:35 am
by slightlymore