ExamVeda
Login
Home
This question belongs to PHP Object Oriented Concept
Object Oriented Concept
?

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”;
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.