?
Which version of PHP introduced the instanceof keyword?
Answer & Solution
Correct 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”;
Join the Discussion
Login to post a comment or share your explanation.
Login