Copyright © 2014 by tutorialspoint
Checks if the class method exists in the given object.
Returns TRUE if the method given by method_name has been defined for the given object, FALSE otherwise.
Following is the usage of this function:
$directory = new Directory('.');
It will produce following result: