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 April 2014
·
zandorz
Zandor
Brazil
·
·
0 Protips
1 Comments
Posted to
PHP get class name without namespace
over 1 year ago
public function getName() {
return substr(strrchr(__CLASS__, "\\"), 1);
}
Achievements
1 Karma
0 Total ProTip Views
public function getName() {
}