\Horde_Idna

Provide normalized encoding/decoding support for IDNA strings.

Summary

Methods
Properties
Constants
encode()
decode()
No public properties found
No constants found
_checkForError()
_getBackend()
$_backend
N/A
No private methods found
No private properties found
N/A

Properties

$_backend

$_backend : mixed

The backend to use.

Type

mixed

Methods

encode()

encode(  $data) 

Parameters

$data

Throws

\Horde_Idna_Exception

decode()

decode(  $data) 

Parameters

$data

Throws

\Horde_Idna_Exception

_checkForError()

_checkForError(array  $info) 

Checks if the $idna_info parameter of idn_to_ascii() or idn_to_utf8() contains errors.

Parameters

array $info

Fourth parameter to idn_to_ascii() or idn_to_utf8().

Throws

\Horde_Idna_Exception

_getBackend()

_getBackend() : mixed

Return the IDNA backend.

Returns

mixed —

IDNA backend (false if none available).