PHP get class name without namespace Below is the simple function to get class name without namesapce. public function getClassName() { $path = explode('\\', __CLASS__); return array_pop($path); } Email ThisBlogThis!Share to TwitterShare to Facebook
0 comments:
Post a Comment