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?
I didn't want numbers and others to be an upper char, so I use:
if(preg_match('/[A-Z]$/',$char)==true) { // this must be an upper char echo $char }