ASCIIConverter
in package
implements
ConversionInterface
Interfaces, Classes, Traits and Enums
Table of Contents
- check() : bool
- Check if the keyword is in ASCII format.
- convert() : string
- Convert the keyword to ASCII format.
Methods
check()
Check if the keyword is in ASCII format.
public
static check(string $keyword) : bool
Parameters
- $keyword : string
-
The keyword to check
Return values
bool —True if the keyword is in Punycode format, false otherwise
convert()
Convert the keyword to ASCII format.
public
static convert(string $keyword, mixed $options) : string
Parameters
- $keyword : string
-
The keyword to convert
- $options : mixed
Return values
string —Returns the Punycode representation of the keyword