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:A
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
Explanation: The function get_class_methods returns an array therefore we cannot use echo.