Posted by Jonas on 09/29/88 11:35
Jonas wrote:
> hio. i have the following problem:
>
> class dummyclass
> {
> function foo()
> { return true; }
> }
>
> init class with
> $dc = new dummyclass;
>
> doing things like "function_exists('$dc->foo')" result unsuccessfully
> I also tried to declare a function "fn_exists" inside the class and
> checked the existence with '$this->foo', but unfortunately same result
> occurred.
>
> does anybody know what to do?
OKAY, did find answear for my own @
http://www.php.net/manual/de/function.is-callable.php
:)
[Back to original message]
|