php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #823 new function
Submitted: 1998-10-06 07:02 UTC Modified: 1999-06-12 16:38 UTC
From: be at SHonline dot DE Assigned:
Status: Closed Package: Feature/Change Request
PHP Version: 3.0.5 OS: any
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: be at SHonline dot DE
New email:
PHP Version: OS:

 

 [1998-10-06 07:02 UTC] be at SHonline dot DE
it would be nice if  there was a function 'classname()' which
returns the class name of a given object. 

Watch this:

$o = new testclass;
print classname($o);

or

print $o->classname();

would produce the output "testclass".

Of course, the implementation of only one of the above would be
sufficient :-)

Thank You

Boris

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-06-12 16:38 UTC] jim at cvs dot php dot net
Implemented in PHP4.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu May 02 19:01:29 2024 UTC