Posted by D_a_n_i_e_l on 08/16/07 15:09
On 16 Aug, 16:04, ZeldorBlat <zeldorb...@gmail.com> wrote:
>
> You can find out if a function exists using function_exists():
>
> if(function_exists('testfn')
> ...
>
> You can also call a function who's name is stored in a variable:
>
> $myfn = 'testfn';
> $result = $myfn(); //calls testfn()
>
> Is that what you're trying to do?- Hide quoted text -
>
> - Show quoted text -
Yes, thank you very much.
PHP is suprisingly powerful.
Navigation:
[Reply to this message]
|