IDN_TO_ASCII(3) 1 IDN_TO_ASCII(3)idn_to_ascii - Convert domain name to IDNA ASCII form.
Procedural style
SYNOPSIS
string idn_to_ascii (string $domain, [int $options], [int $variant = INTL_IDNA_VARIANT_2003], [array &$idna_info])
DESCRIPTION
This function converts Unicode domain name to IDNA ASCII-compatible format.
PARAMETERS
o $domain
- Domain to convert. In PHP 5 must be UTF-8 encoded.
o $options
- Conversion options - combination of IDNA_* constants (except IDNA_ERROR_* constants).
o $variant
- Either INTL_IDNA_VARIANT_2003 for IDNA 2003 or INTL_IDNA_VARIANT_UTS46 for UTS #46.
o $idna_info
- This parameter can be used only if INTL_IDNA_VARIANT_UTS46 was used for $variant. In that case, it will be filled with an array
with the keys 'result', the possibly illegal result of the transformation, 'isTransitionalDifferent', a boolean indicating whether
the usage of the transitional mechanisms of UTS #46 either has or would have changed the result and 'errors', which is an int rep-
resenting a bitset of the error constants IDNA_ERROR_*.
RETURN VALUES
Domain name encoded in ASCII-compatible form. or FALSE on failure
CHANGELOG
+-------------------+---------------------------------------------------+
| Version | |
| | |
| | Description |
| | |
+-------------------+---------------------------------------------------+
|5.4.0/PECL 2.0.0b1 | |
| | |
| | Added the parameters $variant and $idna_info; |
| | UTS #46 support. |
| | |
+-------------------+---------------------------------------------------+
EXAMPLES
Example #1
idn_to_ascii(3) example
<?php
echo idn_to_ascii('tast.de');
?>
The above example will output:
xn--tst-qla.de
SEE ALSO idn_to_unicode(3).
PHP Documentation Group IDN_TO_ASCII(3)
Check Out this Related Man Page
VARIANT_INT(3) 1 VARIANT_INT(3)variant_int - Returns the integer portion of a variantSYNOPSIS
mixed variant_int (mixed $variant)
DESCRIPTION
Gets the integer portion of a variant.
PARAMETERS
o $variant
- The variant.
Note
As with all the variant arithmetic functions, the parameters for this function can be either a PHP native type (integer, string,
floating point, boolean or NULL), or an instance of a COM, VARIANT or DOTNET class. PHP native types will be converted to variants
using the same rules as found in the constructor for the "VARIANT" class. COM and DOTNET objects will have the value of their
default property taken and used as the variant value.
The variant arithmetic functions are wrappers around the similarly named functions in the COM library; for more information on
these functions, consult the MSDN library. The PHP functions are named slightly differently; for example variant_add(3) in PHP cor-
responds to VarAdd() in the MSDN documentation.
RETURN VALUES
If $variant is negative, then the first negative integer greater than or equal to the variant is returned, otherwise returns the integer
portion of the value of $variant.
SEE ALSO variant_fix(3), variant_round(3), floor(3), ceil(3), round(3).
PHP Documentation Group VARIANT_INT(3)
SC Version: 5.19.3 Build_01
Version build: 1.0
Version String: 5.19.3
RTOS version: 45
when I do "showkeyswtich"
Domain A keyswitch is : on
Domain B keyswitch is : on
Domain C keyswitch is : on_to_on
Domain D keyswitch is : on
when I do "setkeyswitch -d c off
"setkeyswitch operation... (0 Replies)