public static function classname($qualifiedName)
    {
        if (false !== $pos = strrpos($qualifiedName, '.')) {
            return substr($qualifiedName, $pos + 1); // start just after '.'
        } elseif (false !== $pos = strrpos($qualifiedName, '\\')) {
            return substr($qualifiedName, $pos + 1);
        } else {
            return $qualifiedName;  // there is no '.' in the qualified name
        }

    }
public static function classname($qualifiedName)
    {
        if (false !== $pos = strrpos($qualifiedName, '.')) {
            return substr($qualifiedName, $pos + 1); // start just after '.'
        } elseif (false !== $pos = strrpos($qualifiedName, '\\')) {
            return substr($qualifiedName, $pos + 1);
        } else {
            return $qualifiedName;  // there is no '.' in the qualified name
        }

    }
public static function classname ( $ qualifiedName ) { if ( false !== $ pos = strrpos ( $ qualifiedName , '.' ) ) { return substr ( $ qualifiedName , $ pos + 1 ) ; // start just after '.' } elseif ( false !== $ pos = strrpos ( $ qualifiedName , '\\' ) ) { return substr ( $ qualifiedName , $ pos + 1 ) ; } else { return $ qualifiedName ; // there is no '.' in the qualified name } }
Gets just classname, given a dot-path to class.
@param  string $qualifiedName
@return string
Gets just classname given a dot - path to class .