Examveda
Examveda

Which one of the following functions is used to determine object type?

A. obj_type()

B. type()

C. is_a()

D. is_obj()

Answer: Option C

Solution(By Examveda Team)

The is_a() function returns true if object belongs to a class type or if it belongs to a class that is a child of that class. Or else false is returned.

This Question Belongs to PHP >> Object Oriented Concept

Join The Discussion

Related Questions on Object Oriented Concept