note 9857 modified in function.call-user-func by danbrown
| From: | danbrown@php.net | Date: | Sat, 19 Jul 2008 21:16:35 +0000 |
| Subject: | note 9857 modified in function.call-user-func by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-141750@lists.php.net to get a copy of this message | ||
I find it easier in a lot of cases to use something like this:
<?php
function test($p1){
echo $p1."<br>";
return $p1/2; // just an example
}
$func = "test";
echo $func(6);
?>
--was--
I find it easier in a lot of cases to use something like that
<?
function test($p1){
echo $p1."<br>";
return $p1/2; // just an example
}
$func = "test";
echo $func(6);
?>
http://php.net/manual/en/function.call-user-func.php