Sail E0 Webinar
Question
Which version of PHP introduced the instanceof keyword?
Options:
A .  PHP 4
B .  PHP 5
C .  PHP 5.3
D .  PHP 6
Answer: Option B


Using instanceof keyword we can determine whether an object is an instance of a class. $manager = new Employee() ¦ if ($manager instanceof Employee) echo "True;



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers