hmm, there is an intresting way that AFAIK only exists in PHP which is the
variable variable and variable function.
That is you could have a string to be a function name and then make the call
with it in the following manner:
$step=1;
$func_const_name="step";
$dyn_func=$func_const_name.$step;
an
Thomas wrote:
Thanks Burhan. Is there much overhead?
Norbert: that's what I am doing now, just wanted to save some code. :-)
Thomas
-Original Message-
From: Norbert Wenzel [mailto:[EMAIL PROTECTED]
Sent: 08 August 2005 11:18 AM
To: php-general@lists.php.net
Subject: [PHP] Re: dynamic
Thanks Burhan. Is there much overhead?
Norbert: that's what I am doing now, just wanted to save some code. :-)
Thomas
-Original Message-
From: Norbert Wenzel [mailto:[EMAIL PROTECTED]
Sent: 08 August 2005 11:18 AM
To: php-general@lists.php.net
Subject: [PHP] Re: dynamically selecting a
3 matches
Mail list logo