What the heck is "->"?

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
fotan
Forum Newbie
Posts: 1
Joined: Tue May 20, 2008 6:52 pm

What the heck is "->"?

Post 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
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: What the heck is "->"?

Post 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.
(#10850)
User avatar
slightlymore
Forum Newbie
Posts: 9
Joined: Sun May 18, 2008 5:24 pm
Location: Oxford, England

Re: What the heck is "->"?

Post by slightlymore »

Post Reply