Method_exists
Check whether the class method exists
Bool (,)
Check whether the class method exists in the specified object.
Parameters:
Object: object example or Class Name
Method_name: Method Name
Return Value:
If the method referred to by method_name has been defined in the object class referred to by the object, TRUE is returned; otherwise, FALSE is returned.
Note:
If this class is not a known class, use this function to use any registered autoloader.
Function_exists
Returns TRUE if the provided method has been defined.
Bool ()
Check the list of defined methods, including built-in (PHP internal) and user-defined methods.
Parameters:
Method Name, string type.
Return Value:
If the method name exists and is a method, TRUE is returned; otherwise, FALSE is returned.
Note:
This function will returnFALSEFor constructs, such as include_once and echo.