Hi,
I'd like to do:
$function = "build_result()";
$result = $$function;
but it doesn't seem to work.
The reason why I think I need it is that I have a generic function, but
within it I have to call another function depending on who called it. I
could build a switch within the generic function
:00 PM
Subject: [PHP] $result = $$function
Hi,
I'd like to do:
$function = "build_result()";
$result = $$function;
but it doesn't seem to work.
The reason why I think I need it is that I have a generic function, but
within it I have to call another function depending on
From: "Peter Van Dijck" [EMAIL PROTECTED]
Hi,
I'd like to do:
$function = "build_result()";
$result = $$function;
but it doesn't seem to work.
Try:
?php
$function = "build_result";
$result = $function();
?
Cheers
Simon Garner
--
PHP General Mailing List
3 matches
Mail list logo