Examveda
Examveda

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

D. echo

Answer: Option C

Solution(By Examveda Team)

The function get_class_methods returns an array therefore we cannot use echo.

This Question Belongs to PHP >> Object Oriented Concept

Join The Discussion

Related Questions on Object Oriented Concept