idna_convert idna_convert(
[
$options = false]
)
|
|
Parameters:
string decode(
string
$input, [
$one_time_encoding = false]
)
|
|
Decode a given ACE domain name
Parameters:
|
string |
$input: |
Domain name (ACE string) [@param string Desired output encoding, see set_parameter] |
|
|
$one_time_encoding: |
|
API Tags:
| Return: | Decoded Domain name (UTF-8 or UCS-4) |
| Access: | public |
string encode(
string
$decoded, [
$one_time_encoding = false]
)
|
|
Encode a given UTF-8 domain name
Parameters:
|
string |
$decoded: |
Domain name (UTF-8 or UCS-4) [@param string Desired input encoding, see set_parameter] |
|
|
$one_time_encoding: |
|
API Tags:
| Return: | Encoded Domain name (ACE string) |
| Access: | public |
string get_last_error(
void
0
)
|
|
Use this method to get the last error ocurred
Parameters:
API Tags:
| Return: | The last error, that occured |
| Access: | public |
boolean set_parameter(
mixed
$option, [string
$value = false]
)
|
|
Sets a new option value. Available options and values:
[encoding - Use either UTF-8, UCS4 as array or UCS4 as string as input ('utf8' for UTF-8, 'ucs4_string' and 'ucs4_array' respectively for UCS4); The output is always UTF-8] [overlong - Unicode does not allow unnecessarily long encodings of chars, to allow this, set this parameter to true, else to false; default is false.] [strict - true: strict mode, good for registration purposes - Causes errors on failures; false: loose mode, ideal for "wildlife" applications by silently ignoring errors and returning the original input instead
Parameters:
|
mixed |
$option: |
Parameter to set (string: single parameter; array of Parameter => Value pairs) |
|
string |
$value: |
Value to use (if parameter 1 is a string) |
API Tags:
| Return: | true on success, false otherwise |
| Access: | public |