note 71521 deleted from function.method-exists by cweiske
| From: | cweiske@php.net | Date: | Fri, 30 Jan 2009 22:55:38 +0000 |
| Subject: | note 71521 deleted from function.method-exists by cweiske | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-150019@lists.php.net to get a copy of this message | ||
Note Submitter:
----
Not (yet) mentioned in the docs: since PHP 5 the first argument may also be a string with the class
name:
class foo {
function bar () {}
}
var_dump(method_exists('foo','bar'));
Will output bool(true) - however note that this won't work in PHP 4. When running PHP 4 this
will output bool(false).
Tested with PHP 5.1 / PHP 4.3