note 111843 deleted from function.is-callable by aharvey

From: Date: Mon, 08 Apr 2013 01:22:26 +0000
Subject: note 111843 deleted from function.is-callable by aharvey
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-194374@lists.php.net to get a copy of this message
Note Submitter: hevyweb ---- 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.

« previous php.notes (#194374) next »