Re: Calling a function.
| From: | Jason Wong | Date: | Fri, 12 Sep 2003 18:33:17 +0000 |
| Subject: | Re: Calling a function. | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-162453@lists.php.net to get a copy of this message | ||
On Saturday 13 September 2003 01:40, CPT John W. Holmes wrote:
> From: "Vincent M." <cult@free.fr>
>
> > Is there any way to call a function with a variable inside the call. ie:
> >
> > if($preferences != "") {
> > dis_display$$preferences() ;
>
> $functon = "dis_play$preferences";
> $function();
Better still:
$functon(); // [sic]
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
Software production is assumed to be a line function, but it is run
like a staff function.
-- Paul Licker
*/