Toggle navigation
Hot Examples
EN
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Search
Home
CI_Utf8
is_ascii
CI_Utf8::is_ascii PHP Method
CI_Utf8 Class Documentation
Show file
Open project: tastyigniter/tastyigniter
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; }
CI_Utf8
__construct
clean_string
convert_to_utf8
is_ascii
safe_ascii_for_xml