public static function extractNamespaceFromQualifiedName($name)
    {
        if (($pos = strrpos($name, '\\')) !== false) {
            return substr($name, 0, $pos);
        } else {
            return null;
        }
    }
public static function extractNamespaceFromQualifiedName($name)
    {
        if (($pos = strrpos($name, '\\')) !== false) {
            return substr($name, 0, $pos);
        } else {
            return null;
        }
    }
public static function extractNamespaceFromQualifiedName ( $ name ) { if ( ( $ pos = strrpos ( $ name , '\\' ) ) !== false ) { return substr ( $ name , 0 , $ pos ) ; } else { return null ; } }
Extract the namespace from the a fully qualified name.

@param string $name The name from which to extract.
@return string
Extract the namespace from the a fully qualified name .