Documentation

UrlParserInterface

URL parser interface

Table of Contents

Methods

parseUrl()  : array<string|int, mixed>
Parse a URL using special handling for a subset of UTF-8 characters in the query string if needed.

Methods

parseUrl()

Parse a URL using special handling for a subset of UTF-8 characters in the query string if needed.

public parseUrl(string $url) : array<string|int, mixed>
Parameters
$url : string

URL to parse

Return values
array<string|int, mixed>

Returns an array identical to what is returned from parse_url(). When an array key is missing from this array, you must fill it in with NULL to avoid warnings in calling code.


        
On this page

Search results