PHP’s parse_url() isn’t standards-compliant, and even basic terms like URI, IRI, URL, and URN can get muddled. This accepted RFC introduces a new, always-available URI extension to parse, validate, modify, recompose, and resolve references in strict accordance with RFC 3986 and the WHATWG URL spec.
|