note 104633 added to function.is-callable
| From: | fgm at osinet dot fr | Date: | Mon, 27 Jun 2011 12:03:41 +0000 |
| Subject: | note 104633 added to function.is-callable | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-180982@lists.php.net to get a copy of this message | ||
Note that, for the purpose of this function, an abstract method, although necessarily non-callable
since it does not have a body, is still considered to be callable:
<?php
abstract class Foo {
abstract function bar();
}
echo is_callable(array('Foo', 'bar'));
// display: 1
?>
----
Server IP: 195.221.21.36
Probable Submitter: 193.58.247.50
----
Manual Page -- http://www.php.net/manual/en/function.is-callable.php
Edit -- https://master.php.net/note/edit/104633
Del: integrated -- https://master.php.net/note/delete/104633/integrated
Del: useless -- https://master.php.net/note/delete/104633/useless
Del: bad code -- https://master.php.net/note/delete/104633/bad+code
Del: spam -- https://master.php.net/note/delete/104633/spam
Del: non-english -- https://master.php.net/note/delete/104633/non-english
Del: in docs -- https://master.php.net/note/delete/104633/in+docs
Del: other reasons-- https://master.php.net/note/delete/104633
Reject -- https://master.php.net/note/reject/104633
Search -- https://master.php.net/manage/user-notes.php