Re[2]: [PHP] Calling a function.

From: Date: Sat, 13 Sep 2003 04:05:45 +0000
Subject: Re[2]: [PHP] Calling a function.
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-162491@lists.php.net to get a copy of this message
Hi, Saturday, September 13, 2003, 5:39:47 AM, you wrote: CJWH> From: "Jason Wong" <php-general@gremlins.biz> >> 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. CJWH> ie: >> > > >> > > if($preferences != "") { >> > > dis_display$$preferences() ; >> > >> > $functon = "dis_play$preferences"; >> > $function(); >> >> Better still: >> >> $functon(); // [sic] CJWH> LOL... No, you don't have to worry about that. Isn't PHP smart enough to CJWH> know what I mean?? CJWH> ---John Holmes... I think the ini file has enable_smart_typist set to on by default, causes me all types of hassles :) -- regards, Tom

« previous php.general (#162491) next »