Re: problem calling functions
| From: | Zoltán Németh | Date: | Fri, 19 Oct 2007 16:24:55 +0000 |
| Subject: | Re: problem calling functions | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-263394@lists.php.net to get a copy of this message | ||
2007. 10. 19, péntek keltezéssel 11.15-kor afan pasalic ezt írta:
> 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?
> }
> ?>
what's wrong with this?
greets
Zoltán Németh
>
> suggestions?
>
> thanks.
>
> -afan
>