src/Anshar/Http/Uri.php
private function explodeUri($uri)
    {
        $uri_parts = array
        (
            "scheme"    => "",
            "hier_part" => "",
            "authority" => "",
            "path"      => "",
            "query"     => "",
            "fragment"  => "",
        );

        $uri_syntax = $this->compileUriRegEx();

        $uri_valid = preg_match($uri_syntax, $uri, $parts);

        $uri_parts = array_merge($uri_parts, $parts); //overwriting default values with matches

        $this->parseExplosions($uri_parts);

        return (bool) $uri_valid;
    }
private function explodeUri($uri)
    {
        $uri_parts = array
        (
            "scheme"    => "",
            "hier_part" => "",
            "authority" => "",
            "path"      => "",
            "query"     => "",
            "fragment"  => "",
        );

        $uri_syntax = $this->compileUriRegEx();

        $uri_valid = preg_match($uri_syntax, $uri, $parts);

        $uri_parts = array_merge($uri_parts, $parts); //overwriting default values with matches

        $this->parseExplosions($uri_parts);

        return (bool) $uri_valid;
    }
private function explodeUri ( $ uri ) { $ uri_parts = array ( "scheme" => "" , "hier_part" => "" , "authority" => "" , "path" => "" , "query" => "" , "fragment" => "" , ) ; $ uri_syntax = $ this -> compileUriRegEx ( ) ; $ uri_valid = preg_match ( $ uri_syntax , $ uri , $ parts ) ; $ uri_parts = array_merge ( $ uri_parts , $ parts ) ; //overwriting default values with matches $ this -> parseExplosions ( $ uri_parts ) ; return ( bool ) $ uri_valid ; }
Splits a string URI into its component parts, returning true if the URI string matches a valid URI's syntax
and false if the URI string does not

@param string $uri   The URI string to be decomposed
@return bool         Returns true if the URI string matches a valid URI's syntax
Returns false otherwise
Splits a string URI into its component parts returning true if the URI string matches a valid URI s syntax and false if the URI string does not