InterviewSolution
Saved Bookmarks
| 1. |
In PHP, which operator is used to access property of an object?(a) .(b) *(c) ->(d) @ |
|
Answer» Right answer is (c) -> For explanation I would say: If $a represents an object, the properties it has can be accessed as $a->property-name. For instance, $a->white, $a->black, $a->blue, $a->red can be the properties of $a and accessed in this way. |
|