I would be grateful if someone explained to me the use of double arrow notation in PHP. I suggest is a double classes and instantiation of that classes, but I am not sure. Some examples will be good. Thanks.
Something like this:
$obj->prop->methd();
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.
This just indicates that
$objhas a property that is a class of some kind rather than an atomic variable. The inner class has a methodmethod()which is called from the second arrow operator. You could also access properties of the inner class via the second arrow.The class definitions might be something like: