Ask a Question related to PHP Development, Design and Development.
-
Vincent M. #1
Calling a function.
Hello,
Is there any way to call a function with a variable inside the call. ie:
if($preferences != "") {
dis_display$$preferences() ;
}
If $preferences = "menus" this will call the function dis_displaymenus()
Thanks,
Vincent.
Vincent M. Guest
-
Calling a function within a function registered to an event
Hey, Just registered and tried to search through the forum for a solution to my problem, but I haven't found anything that could help me. I've... -
Calling TCL function from PHP 4.3
Hi all, I'm just picking up PHP, and am really appreciating the transition, however, I'm running into somewhat of a loggerhead. I'm trying to find... -
[PHP] Function calling from url
> I would like to call a function from a <FORM>'s ACTION attribute. This Well, you're not going to call a function that way, but you will submit... -
Function/Global var to return name of calling function?
I'm sure I saw this somewhere but can't remember where and can't find it now... Is there a PHP function or global variable that will return name... -
calling c function from php app
Did you get vertex tax integrated? I am trying to implement that for a client right now. Any help would be great. Thanks, Chris ... -
Cpt John W. Holmes #2
Re: [PHP] Calling a function.
From: "Vincent M." <cult@free.fr>
$functon = "dis_play$preferences";> Is there any way to call a function with a variable inside the call. ie:
>
> if($preferences != "") {
> dis_display$$preferences() ;
$function();
---John Holmes...
Cpt John W. Holmes Guest
-
Jason Wong #3
Re: [PHP] Calling a function.
On Saturday 13 September 2003 01:40, CPT John W. Holmes wrote:
Better still:> 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();
$functon(); // [sic]
--
Jason Wong -> Gremlins Associates -> [url]www.gremlins.biz[/url]
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
[url]http://marc.theaimsgroup.com/?l=php-general[/url]
------------------------------------------
/*
Software production is assumed to be a line function, but it is run
like a staff function.
-- Paul Licker
*/
Jason Wong Guest
-
Cpt John W. Holmes #4
Re: [PHP] Calling a function.
From: "Jason Wong" <php-general@gremlins.biz>
ie:> 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.LOL... No, you don't have to worry about that. Isn't PHP smart enough to>> >> > >
> > > if($preferences != "") {
> > > dis_display$$preferences() ;
> > $functon = "dis_play$preferences";
> > $function();
> Better still:
>
> $functon(); // [sic]
know what I mean??
---John Holmes...
Cpt John W. Holmes Guest
-
Tom Rogers #5
Re[2]: [PHP] Calling a function.
Hi,
Saturday, September 13, 2003, 5:39:47 AM, you wrote:
CJWH> From: "Jason Wong" <php-general@gremlins.biz>
CJWH> ie:>> 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> LOL... No, you don't have to worry about that. Isn't PHP smart enough to>>>> > >
>> > > if($preferences != "") {
>> > > dis_display$$preferences() ;
>> >
>> > $functon = "dis_play$preferences";
>> > $function();
>> Better still:
>>
>> $functon(); // [sic]
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
Tom Rogers Guest



Reply With Quote

