note 111843 added to function.is-callable
| From: | hevyweb | Date: | Thu, 04 Apr 2013 07:35:41 +0000 |
| Subject: | note 111843 added to function.is-callable | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-194329@lists.php.net to get a copy of this message | ||
It seems that first parameter can contain 2 strings, but it's written that there should be an
object and method name (string).
<?php
class Test{
function foo(){
}
}
if (is_calable(array("Test", "foo"))){
echo "ok";
}
?>
gives you ok.
----
Server IP: 69.147.83.199
Probable Submitter: 188.163.232.130
----
Manual Page -- http://php.net/manual/en/function.is-callable.php
Edit -- https://master.php.net/note/edit/111843
Del: integrated -- https://master.php.net/note/delete/111843/integrated
Del: useless -- https://master.php.net/note/delete/111843/useless
Del: bad code -- https://master.php.net/note/delete/111843/bad+code
Del: spam -- https://master.php.net/note/delete/111843/spam
Del: non-english -- https://master.php.net/note/delete/111843/non-english
Del: in docs -- https://master.php.net/note/delete/111843/in+docs
Del: other reasons-- https://master.php.net/note/delete/111843
Reject -- https://master.php.net/note/reject/111843
Search -- https://master.php.net/manage/user-notes.php