Re: which class it is?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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











-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux