Req #63526 [Com]: get_class(): New parameter to allow stripping of namespace

From: Date: Thu, 15 Nov 2012 18:01:57 +0000
Subject: Req #63526 [Com]: get_class(): New parameter to allow stripping of namespace
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-174728@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=63526&edit=1

 ID:                 63526
 Comment by:         nikic@php.net
 Reported by:        alex at arcomit dot co dot uk
 Summary:            get_class(): New parameter to allow stripping of
                     namespace
 Status:             Open
 Type:               Feature/Change Request
 Package:            Class/Object related
 PHP Version:        Irrelevant
 Block user comment: N
 Private report:     N

 New Comment:

Seems unnecessary to me, especially as you can always do (new
ReflectionObject($obj))->getShortName().


Previous Comments:
------------------------------------------------------------------------
[2012-11-15 11:38:12] alex at arcomit dot co dot uk

Description:
------------
Add a new parameter to get_class so it can return the class with the namespace removed.

string get_class ([ object $object = NULL ] , [ bool $stripNamespace = FALSE ] )



------------------------------------------------------------------------



-- 
Edit this bug report at https://bugs.php.net/bug.php?id=63526&edit=1


Thread (3 messages)

« previous php.bugs (#174728) next »