Name any two function to extract basic information about classes in php
Answers
Answered by
3
Two function to extract basic information about classes in php
Explanation:
Following Functions to extract basic information about classes:
- get_class_methods( $class_name) : array
The function will return an array of method names defined for the class specified by class_name otherwise returns NULL if error occurs.
- get_class ( $object ) : string
The function will get class name of specified object.
It will return class name to which object belongs otherwise return FALSE if object is not found to be an object.
Similar questions