WordPress at Your Fingertips
function is not described

Requests_IDNAEncoder::is_ascii() protected WP 1.0

Check whether a given string contains only ASCII characters

{} It's a method of the class: Requests_IDNAEncoder{}

No Hooks.

Return

true|false. Is the string ASCII-only?

Usage

$result = Requests_IDNAEncoder::is_ascii( $string );
$string(string) (required)
-

Code of Requests_IDNAEncoder::is_ascii() WP 5.7.2

<?php
protected static function is_ascii($string) {
	return (preg_match('/(?:[^\x00-\x7F])/', $string) !== 1);
}