You are here: Re: how to use function_exists within a class « All PHP « IT news, forums, messages
Re: how to use function_exists within a class

Posted by Jonas on 10/13/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
:)

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация