Re: [PHP] dynamically selecting a function

2005-08-08 Thread Burhan Khalid
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. Use call_user_func(). Si

[PHP] dynamically selecting a function

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