CI_Utf8::is_ascii PHP Method

is_ascii() public method

Tests if a string is standard 7-bit ASCII or not.
public is_ascii ( string $str ) : boolean
$str string String to check
return boolean
    public function is_ascii($str)
    {
        return preg_match('/[^\\x00-\\x7F]/S', $str) === 0;
    }