public static function getStrippedClassName($classname)
    {
        // Find the position of the last occurrence of \\ in $classname with strrpos
        $pos = strrpos($classname, '\\');
        if ($pos) {
            return substr($classname, $pos + 1);
        }

        return $classname;
    }
public static function getStrippedClassName($classname)
    {
        // Find the position of the last occurrence of \\ in $classname with strrpos
        $pos = strrpos($classname, '\\');
        if ($pos) {
            return substr($classname, $pos + 1);
        }

        return $classname;
    }
public static function getStrippedClassName ( $ classname ) { // Find the position of the last occurrence of \\ in $classname with strrpos $ pos = strrpos ( $ classname , '\\' ) ; if ( $ pos ) { return substr ( $ classname , $ pos + 1 ) ; } return $ classname ; }
Returns the class name and strips off the namespace.
@param string $classname The classname with optional namespace reference
@return string Only the classname without the namespace.
Returns the class name and strips off the namespace .