dynamically selecting a function
| From: | Thomas | Date: | Mon, 08 Aug 2005 09:10:07 +0000 |
| Subject: | dynamically selecting a function | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-220201@lists.php.net to get a copy of this message | ||
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