单词
AŠA
PHP
<?php
foreach (glob("*.jpg") as $filename) {
$search = array("Š");
$replace = array("S");
$newname = str_replace($search, $replace, $filename);
echo $filename.'<br>'.$newname;
//($filename, realpath(dirname(__FILE__)).'/'.$newname);
}
问题 它不能替换单词“AŠA”中的字符“Š”