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'; } 

Comments

Popular posts from this blog

javascript - Iterate over array and calculate average values of array-parts -

iphone - Using nested NSDictionary with Picker -

objective c - Newbie question -multiple parameters -