Req #63526 [Com]: get_class(): New parameter to allow stripping of namespace
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)