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

What about switch / case?

switch($step) {
 case 1:
        step1();
        break;
 case 2:
        step2();
        break;
 default:
        defaultStep();
        break;
}

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to