Re: [PHP] Re: dynamically selecting a function

2005-08-08 Thread M Saleh EG
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

Re: [PHP] Re: dynamically selecting a function

2005-08-08 Thread Norbert Wenzel
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

RE: [PHP] Re: dynamically selecting a function

2005-08-08 Thread Thomas
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