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?
Tried ?
$str = 'the text to test'; if($str{0} === strtoupper($str{0})) { echo 'yepp, its uppercase'; } else{ echo 'nope, its not upper case'; }