Function utf8_is_word_chars
Checks a string for whether it contains only word characters. This is logically equivalent to the \w PCRE meta character. Note that this is not a 100% guarantee that the string only contains alpha / numeric characters but just that common non-alphanumeric are not in the string, including ASCII device control characters.
Package: utf8
See:
Located at vendor/joomla/string/src/phputf8/utils/specials.php
See:
utf8_specials_pattern()
Located at vendor/joomla/string/src/phputf8/utils/specials.php
Parameters summary
string |
$str |
to check |
Return value summary
boolean
|
TRUE if the string only contains word characters |