note 102150 modified in functions.variable-functions by danbrown

From: Date: Sat, 29 Jan 2011 22:03:11 +0000
Subject: note 102150 modified in functions.variable-functions by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-176500@lists.php.net to get a copy of this message
You can make dynamic functions as well. For example <?php $myFunction = function() { echo 1; }; if(is_callable($myFunction)) { $myFunction(); } ?> --was-- You can make dynamic functions as well. For example $myFunction = function() { echo 1; }; if(is_callable($myFunction)) { $myFunction(); } http://php.net/manual/en/functions.variable-functions.php

« previous php.notes (#176500) next »