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

Choose the Best Option

Click any option to instantly check if you're correct.

  • A PHP 4
  • B PHP 5
  • C PHP 5.3
  • D PHP 6
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”;
No Previous Next Question

Share This Question

Challenge a friend or share with your study group.