note 16449 deleted from functions.variable-functions by zak
| From: | zak@php.net | Date: | Wed, 31 Oct 2001 04:57:31 +0000 |
| Subject: | note 16449 deleted from functions.variable-functions by zak | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-19691@lists.php.net to get a copy of this message | ||
It would be great to define the function names on the fly. But
this doesn't work:
$funcs[foo] = "FOO_X";
function $funcs[foo]($var){
//blabla
}
$funcs[foo]($var='0');
Won't work...
Why assign the values twice?? One to the function itself and other to the variable through which we
want to call it!?
Any idea to define and call it with the same var?
João Paulo M. Fischer