Vidyalelo
PHP · Q59

Object Oriented Concept

Programming · PHP · question 59

Q59

Which version of PHP introduced the instanceof keyword?

A.
PHP 4
B.
PHP 5
Answer
C.
PHP 5.3
D.
PHP 6

Answer: Option B

Solution

Answer: Option B
Solution:
Using instanceof keyword we can determine whether an object is an instance of a class. manager instanceof Employee) echo “True”;