Метод | Описание | |
---|---|---|
escapeString ( string $string ) : string | Special string encoding function like urlencode(), corresponding to Python's urllib.parse.quote(string, "!~*'();/?:@&=+$,# ") | |
unescapeString ( string $string ) : string | Special string decoding function like urldecode(), corresponding to Python's urllib.parse.unquote(string) | |
unicodeChr ( integer $code ) : string | Multibyte replacement for standard chr() | |
unicodeOrd ( string $char ) : integer | Multibyte replacement for standard ord() |
public static escapeString ( string $string ) : string | ||
$string | string | String for encoding. |
Результат | string | Encoded string. |
public static unescapeString ( string $string ) : string | ||
$string | string | String for decoding. |
Результат | string | Decoded string. |
public static unicodeChr ( integer $code ) : string | ||
$code | integer | Character code. |
Результат | string | Char with given code |
public static unicodeOrd ( string $char ) : integer | ||
$char | string | Char. |
Результат | integer | Code of given char. |