Vidyalelo
PHP · Q89

Object Oriented Concept

Programming · PHP · question 89

Q89

You use the get_class_methods() function to return the names of all the methods in the class. Which function will you use to print it on the screen?

A.
printf()
B.
print_ar
C.
print_r
Answer
D.
echo

Answer: Option C

Solution

Answer: Option C
Solution:
The function get_class_methods returns an array therefore we cannot use echo.