Vidyalelo
PHP · Q12

Object Oriented Concept

Programming · PHP · question 12

Q12

What will be the output of the following PHP code?

A.
bool(true)
Answer
B.
bool(false)
C.
error
D.
none of the above

Answer: Option A

Solution

Answer: Option A
Solution:
To check if an object is not an instanceof a class, the logical not operator can be used.