Requests_IDNAEncoder::is_ascii( string $string )

Check whether a given string contains only ASCII characters


Parameters

$string

(Required)


Return

(bool) Is the string ASCII-only?


Source

File: wp-includes/Requests/IDNAEncoder.php

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