19.10.2018, 22:26
How can I check if a string's first letter is lower case? Thanks
new str[] = "Hello world";
if(!('A' <= str[0] <= 'Z'))
{
/*
<Lowercase>
But 'H' is uppercase, so here it will not be called
*/
}
PHP Code:
|
if('a' <= str[0] <= 'z')