faqts : Computers : Programming : Languages : PHP : kms : Classes

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

13 of 17 people (76%) answered Yes
Recently 8 of 10 people (80%) answered Yes

Entry

How can I get the class name of an object?

Jan 27th, 2000 11:01
Andrei Zmievski, Nathan Wallace, Richard Lynch, Gregor Welters


PHP 4 has get_class() function.
Otherwise, give the class a property named "classname" and fill it with
the classname.