method_exists

PHP 4, PHP 5, PHP 7, PHP 8
method_exists - Checks if the class method exists
Manual
Code Examples

Example #1 method_exists example

Result: bool(true)
PHP Version:

Example #2 Static method_exists example

Result: bool(true)
PHP Version:


Function method_exists:

Class/Object Information Functions

Most used PHP functions