I have texts in UTF-8 with diacritic characters also, and would like to check if first letter of this text is upper case or lower case. How to do this?
Use ctype_upper for check upper case:
ctype_upper
$a = array("Word", "word", "wOrd"); foreach($a as $w) { if(ctype_upper($w{0})) { print $w; } }