Javascript debugger
Website design
↑
Returns TRUE if the method given by method_name
has been defined for the given object, FALSE
otherwise.
<?php
$directory = new Directory('.');
var_dump(method_exists($directory,'read'));
?>The above example will output:
bool(true)
<?php
$directory = new Directory('.');
var_dump(method_exists('Directory','read'));
?>The above example will output:
bool(true)
| function_exists() |
| is_callable() |