Overview

Namespaces

  • esperecyan
    • url
      • lib

Classes

  • HostProcessing
  • Infrastructure
  • PercentEncoding
  • Terminology
  • URL
  • URLencoding
  • Overview
  • Namespace
  • Class
  • Tree

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
Namespace: esperecyan\url\lib
Link: URL Standard
Located at lib\URLencoding.php
Methods summary
public static string[][]
# parseURLencoded( string $input )

The application/x-www-form-urlencoded parser.

The application/x-www-form-urlencoded parser.

Parameters

$input
A byte sequence.

Returns

string[][]
A list of name-value tuples.

Link

URL Standard
public static string
# serializeURLencodedByte( string $input )

The application/x-www-form-urlencoded byte serializer.

The application/x-www-form-urlencoded byte serializer.

Parameters

$input
A byte sequence.

Returns

string

Link

URL Standard
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

URL Standard
public static string[][]
# parseURLencodedString( string $input )

The application/x-www-form-urlencoded string parser.

The application/x-www-form-urlencoded string parser.

Parameters

$input
A UTF-8 string.

Returns

string[][]
An array of two-element arrays with the first element a name and the second the value.

Link

URL Standard
esperecyan/url documentation API documentation generated by ApiGen