note 102150 added to functions.variable-functions
| From: | michalmojz at gmail dot com | Date: | Sat, 29 Jan 2011 21:51:20 +0000 |
| Subject: | note 102150 added to functions.variable-functions | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-176499@lists.php.net to get a copy of this message | ||
You can make dynamic functions as well.
For example
$myFunction = function() {
echo 1;
};
if(is_callable($myFunction)) {
$myFunction();
}
----
Server IP: 69.147.83.197
Probable Submitter: 94.170.100.216
----
Manual Page -- http://www.php.net/manual/en/functions.variable-functions.php
Edit -- https://master.php.net/note/edit/102150
Del: integrated -- https://master.php.net/note/delete/102150/integrated
Del: useless -- https://master.php.net/note/delete/102150/useless
Del: bad code -- https://master.php.net/note/delete/102150/bad+code
Del: spam -- https://master.php.net/note/delete/102150/spam
Del: non-english -- https://master.php.net/note/delete/102150/non-english
Del: in docs -- https://master.php.net/note/delete/102150/in+docs
Del: other reasons-- https://master.php.net/note/delete/102150
Reject -- https://master.php.net/note/reject/102150
Search -- https://master.php.net/manage/user-notes.php