Skip to content

Validating a lower alphabetic string

Validate strings, lower case letters: ctype_lower()

The ctype_lower() function returns true if the input string contains all alphabetic lower case characters ("a".."z"):

ctype_lower("abcdefg"); // true
ctype_lower("abCDEFG"); // false