Vidyalelo
PHP · Q87

Object Oriented Concept

Programming · PHP · question 87

Q87

Which one of the following will you use to check the class of an object?

A.
class()
B.
_class()
C.
class_check()
D.
get_class()
Answer

Answer: Option D

Solution

Answer: Option D
Solution:
This function accepts any object as an argument and returns its class name as a string.