1.

Which operator is used to access property of an object in PHP?(a) .(b) *(c) ->(d) @I had been asked this question in homework.I need to ask this question from General Preventative Maintenance topic in chapter Database Maintenance, Backups and Replication of MySQL

Answer»

Correct CHOICE is (c) ->

EASY explanation: 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.



Discussion

No Comment Found

Related InterviewSolutions