Coderwall
Ruby
Python
JavaScript
Front-End
Tools
iOS
More
Tips
Ruby
Python
JavaScript
Front-End
Tools
iOS
PHP
Android
.NET
Java
Jobs
Jobs
Sign In or Up
Joined May 2015
·
codeFareith
Robin von den Bergen
BannerBüro GmbH
·
Cologne, Germany
·
·
·
2 Protips
1 Comments
Posted to
PHP get class name without namespace
over 1 year ago
fastest solution so far
return (substr($classname, strrpos($classname, '\\') + 1));
Achievements
9 Karma
9,225 Total ProTip Views
Interests & Skills
Java
C#
PHP
HTML
CSS
JavaScript
ActionScript
SQL
XML
BashScript
fastest solution so far