Page 1 of 1

what is '->'

Posted: Thu Mar 20, 2008 7:06 pm
by Smaug
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.

Re: what is '->'

Posted: Thu Mar 20, 2008 8:32 pm
by hayson1991
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.
It's the object pointer. Basically object->propertyname gives you the property of the object.

Re: what is '->'

Posted: Fri Mar 21, 2008 2:58 am
by Chris Corbyn