Possible Duplicate:
Reference – What does this symbol mean in PHP?
What exactly does -> do in php?
I have a good understanding of the basics of php but never understood this. I tend to see in apps that use Codeignitor.
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.
-> is accessing a varible inside of a class, so that
$class->variableInClass
It also can work with functions, with the same syntax as above.
If you’re not familiar with OOP, I’d suggest looking here