Re: [PHP] Re: dynamically selecting a function

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

Re: [PHP] Re: dynamically selecting a function

2005-08-08 Thread Norbert Wenzel
P] Re: dynamically selecting a function Thomas wrote: Hi there, How can I do something like this: [snip - theoretical code] if( isset($step) ) echo step.$step() ) [/snip] $step would be an int (I would check that before) and then I would have all sorts of functions like step1(), step2()

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 select

[PHP] Re: dynamically selecting a function

2005-08-08 Thread Norbert Wenzel
Thomas wrote: Hi there, How can I do something like this: [snip - theoretical code] if( isset($step) ) echo step.$step() ) [/snip] $step would be an int (I would check that before) and then I would have all sorts of functions like step1(), step2() . etc. Any ideas? Thomas