[PHP] $result = $$function

2001-02-24 Thread Peter Van Dijck
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

Re: [PHP] $result = $$function

2001-02-24 Thread Web Admin
: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

Re: [PHP] $result = $$function

2001-02-24 Thread Simon Garner
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