On 19/10/2007, afan pasalic <[EMAIL PROTECTED]> wrote:
> hi
> I have a problem with calling functions:
>
> <?php
> function solution1($var1) {
> // some code
> }
>
> function solution2($var2) {
> // some code
> }
>
> function solution3($var3) {
> // some code
> }
>
> if ($function == 'solution1' or $function == 'solution2' or $function ==
> 'solution3')
> {
> $my_solution = $function($var); # this supposed to call one of
> "solution" functions, right?
> }
> ?>
>
> suggestions?
suggestions for what?
What is your problem? If you set $function to 'solution1' and run your
code, it will indeed execute solution1().
-robin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php