Single Choice
Not Set
Q Which version of PHP introduced the instanceof keyword?
ID: #2561
Object Oriented Concept of PHP
1,554 views
Question Info
#2561Q ID
Not SetDifficulty
Object Oriented Concept of PHPTopic
Your Answer
Choose the Best Option
Click any option to instantly check if you're correct.
Correct Answer
Explanation
Using instanceof keyword we can determine whether an object is an instance of a class. $manager = new Employee() … if ($manager instanceof Employee) echo “True”;
Continue Practice
Share
Share This Question
Challenge a friend or share with your study group.
More from This Topic