Check if filename contains Umlauts in php -
is there way, check in php if filename has umlauts?
there's quick way this:
$s = 'äëüïö';  if (preg_match('/&[a-za-z]uml;/', htmlentities($s, ent_compat, 'utf-8'))) {     echo 'filename contains umlaut'; } is there way, check in php if filename has umlauts?
there's quick way this:
$s = 'äëüïö';  if (preg_match('/&[a-za-z]uml;/', htmlentities($s, ent_compat, 'utf-8'))) {     echo 'filename contains umlaut'; } 
Comments
Post a Comment