Re: $result = $$function
| From: | Simon Garner | Date: | Sat, 24 Feb 2001 22:41:47 +0000 |
| Subject: | Re: $result = $$function | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-41521@lists.php.net to get a copy of this message | ||
From: "Peter Van Dijck" <peter@vardus.com>
> 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