Used By
Used By | Description |
---|---|
wp-includes/Requests/IDNAEncoder.php: Requests_IDNAEncoder::to_ascii() | Convert a UTF-8 string to an ASCII string using Punycode |
Check whether a given string contains only ASCII characters
(string) (Required)
(bool) Is the string ASCII-only?
File: wp-includes/Requests/IDNAEncoder.php
protected static function is_ascii($string) { return (preg_match('/(?:[^\x00-\x7F])/', $string) !== 1); }
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/requests_idnaencoder/is_ascii