Hey all. I was looking through some code and saw the symbol combination '->' used a lot. I have not seen it in any of the tutorials I have used to learn PHP, nor can I find info about it online. I've tried to deduce it's purpose, but I thought I should ask the people in the know as well.
What does the -> mean/do?
Thanks.
what is '->'
Moderator: General Moderators
-
hayson1991
- Forum Newbie
- Posts: 14
- Joined: Thu Mar 20, 2008 1:19 pm
Re: what is '->'
It's the object pointer. Basically object->propertyname gives you the property of the object.Smaug wrote:Hey all. I was looking through some code and saw the symbol combination '->' used a lot. I have not seen it in any of the tutorials I have used to learn PHP, nor can I find info about it online. I've tried to deduce it's purpose, but I thought I should ask the people in the know as well.
What does the -> mean/do?
Thanks.
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia