note 36439 deleted from function.eval by didou

From: Date: Thu, 09 Oct 2003 15:00:55 +0000
Subject: note 36439 deleted from function.eval by didou
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-58139@lists.php.net to get a copy of this message
Note Submitter: Mauro the Came ---- If you want do a call to a function with a dynamic name you can: foreach($dir as $dirname => $id_dir) { $comando="".$dirname."_namefunction(".$var.")"; // $comando is: namefunction1_name($var); eval("\$var_returned = $comando;"); // $var_returned contains the value returned from the // namefunction1_name } Bye ;-)

« previous php.notes (#58139) next »