public static function parseClarkNotation(string $str): array
    {
        static $cache = [];

        if (!isset($cache[$str])) {
            if (!preg_match('/^{([^}]*)}(.*)$/', $str, $matches)) {
                throw new \InvalidArgumentException('\''.$str.'\' is not a valid clark-notation formatted string');
            }

            $cache[$str] = [
                $matches[1],
                $matches[2],
            ];
        }

        return $cache[$str];
    }
public static function parseClarkNotation(string $str): array
    {
        static $cache = [];

        if (!isset($cache[$str])) {
            if (!preg_match('/^{([^}]*)}(.*)$/', $str, $matches)) {
                throw new \InvalidArgumentException('\''.$str.'\' is not a valid clark-notation formatted string');
            }

            $cache[$str] = [
                $matches[1],
                $matches[2],
            ];
        }

        return $cache[$str];
    }
public static function parseClarkNotation ( string $ str ) : array { static $ cache = [ ] ; if ( ! isset ( $ cache [ $ str ] ) ) { if ( ! preg_match ( '/^{([^}]*)}(.*)$/' , $ str , $ matches ) ) { throw new \ InvalidArgumentException ( '\'' . $ str . '\' is not a valid clark-notation formatted string' ) ; } $ cache [ $ str ] = [ $ matches [ 1 ] , $ matches [ 2 ] , ] ; } return $ cache [ $ str ] ; }
Parses a clark-notation string, and returns the namespace and element
name components.

If the string was invalid, it will throw an InvalidArgumentException.

@throws \InvalidArgumentException
Parses a clark - notation string and returns the namespace and element name components .