Class URLencoding
The application/x-www-form-urlencoded format is a simple way to encode name-value pairs
in a byte sequence where all bytes are in the 0x00 to 0x7F range.
-
esperecyan\url\lib\URLencoding
uses
esperecyan\url\lib\Utility
Methods summary
public static
string[][]
|
#
parseURLencoded( string $input )
The application/x-www-form-urlencoded parser.
The application/x-www-form-urlencoded parser.
Parameters
Returns
string[][] A list of name-value tuples.
Link
|
public static
string
|
#
serializeURLencodedByte( string $input )
The application/x-www-form-urlencoded byte serializer.
The application/x-www-form-urlencoded byte serializer.
Parameters
Returns
string
Link
|
public static
string
|
#
serializeURLencoded( (string|string[])[][] $tuples, string|null $encodingOverride = 'UTF-8' )
The application/x-www-form-urlencoded serializer.
The application/x-www-form-urlencoded serializer.
Parameters
- $tuples
A list of name-value or name-value-type tuples.
The name, value, and filename must be a UTF-8 string.
- $encodingOverride
- A valid name of an encoding.
Returns
string
Link
|
public static
string[][]
|
#
parseURLencodedString( string $input )
The application/x-www-form-urlencoded string parser.
The application/x-www-form-urlencoded string parser.
Parameters
Returns
string[][] An array of two-element arrays with the first element a name and the second the value.
Link
|