Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php get class name without namespace from string

return substr(strrchr(__CLASS__, ""), 1);
Source by coderwall.com #
 
PREVIOUS NEXT
Tagged: #php #class #namespace #string
ADD COMMENT
Topic
Name
6+2 =