Possible Duplicate:
Reference – What does this symbol mean in PHP?
Sorry for being so pedantic about this, but I’m confused about the object operator (->). What exactly is it doing and how (to avoid errors and misusing) do I use it?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
In order to use the object operator, you will need to create and instantiate a class, as follows:
Let me explain the above code:
The object operator is simply PHPs way of accessing, running, or assigning “stuff” within an object.
Hope that helps.