note 98845 added to function.is-callable
| From: | minty at nospam dot com | Date: | Sat, 10 Jul 2010 21:34:51 +0000 |
| Subject: | note 98845 added to function.is-callable | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-170866@lists.php.net to get a copy of this message | ||
Although not mentioned anywhere on the manual page, is_callable works as expected with closures.
<?php
$func = function() { return; };
var_dump(is_callable($func)); // boolean (true)
?>
----
Server IP: 87.124.126.135
Probable Submitter: 89.242.140.237 (proxied: 89.242.140.237)
----
Manual Page -- http://www.php.net/manual/en/function.is-callable.php
Edit -- https://master.php.net/note/edit/98845
Del: integrated -- https://master.php.net/note/delete/98845/integrated
Del: useless -- https://master.php.net/note/delete/98845/useless
Del: bad code -- https://master.php.net/note/delete/98845/bad+code
Del: spam -- https://master.php.net/note/delete/98845/spam
Del: non-english -- https://master.php.net/note/delete/98845/non-english
Del: in docs -- https://master.php.net/note/delete/98845/in+docs
Del: other reasons-- https://master.php.net/note/delete/98845
Reject -- https://master.php.net/note/reject/98845
Search -- https://master.php.net/manage/user-notes.php