You are here: Re: [PHP] which class it is? « PHP « IT news, forums, messages
Re: [PHP] which class it is?

Posted by Jochem Maas on 03/04/05 10:42

yangshiqi wrote:
> I have a question that how to get the class name, which is initialized by
> other class or function.
>

....

>
>
> How can I get class b's name in a?
>

you have the get_class() function,
you have the __CLASS__ constant....

can you give an example of a situation where you are having
trouble of retrieving the className of a subclassed object (or class)?

>
>
>
>
> Best regards,
>
> Yang Shiqi
>
>
>
>
>
>
>
>
>
>

 

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

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