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
What the heck is "->"?
Moderator: General Moderators
- Christopher
- Site Administrator
- Posts: 13596
- Joined: Wed Aug 25, 2004 7:54 pm
- Location: New York, NY, US
Re: What the heck is "->"?
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)
- slightlymore
- Forum Newbie
- Posts: 9
- Joined: Sun May 18, 2008 5:24 pm
- Location: Oxford, England