\Guzzle\Parser\UrlUrlParser

Parses URLs into parts using PHP's built-in parse_url() function

Summary

Methods
Properties
Constants
setUtf8Support()
parseUrl()
No public properties found
No constants found
No protected methods found
$utf8
N/A
No private methods found
No private properties found
N/A

Properties

$utf8

$utf8 : boolean

Type

boolean — Whether or not to work with UTF-8 strings

Methods

setUtf8Support()

setUtf8Support(boolean  $utf8) 

Set whether or not to attempt to handle UTF-8 strings (still WIP)

Parameters

boolean $utf8

Set to TRUE to handle UTF string

parseUrl()

parseUrl(string  $url) : array

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

Parameters

string $url

URL to parse

Returns

array —

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.