Function utf8_strip_specials
Removes special characters (nonalphanumeric) from a UTF-8 string
This can be useful as a helper for sanitizing a string for use as something like a file name or a unique identifier. Be warned though it does not handle all possible non-alphanumeric characters and is not intended is some kind of security / injection filter.
Package: utf8
Author: Andreas Gohr <andi@splitbrain.org>
See:
Located at vendor/joomla/string/src/phputf8/utils/specials.php
Author: Andreas Gohr <andi@splitbrain.org>
See:
utf8_specials_pattern()
Located at vendor/joomla/string/src/phputf8/utils/specials.php
Parameters summary
string |
$string |
The UTF8 string to strip of special chars |
string |
$repl = '' |
(optional) $repl Replace special with this string |
Return value summary
string
|
with common non-alphanumeric characters removed |