PHP | ctype_lower() Function Last Updated : 16 Apr, 2020 Summarize Comments Improve Suggest changes Share Like Article Like Report The ctype_lower() function is an inbuilt function in PHP which is used to check whether the given characters in the string is lower case or not. Syntax: bool ctype_lower( string $text ) Parameters: This function accepts single parameter $text which holds the string that need to be tested. Return Value: This function returns TRUE if all characters of a string is a lowercase character in the current locale. Below programs illustrate the ctype_lower() function in PHP: Program 1: php <?php // PHP program to check the string contains // all lower case characters or not $strings = array('gfg123', 'geeksforgeeks', 'GfG'); // Loop to check the above three strings foreach ($strings as $testcase) { if (ctype_lower($testcase)) { echo "Yes\n"; } else { echo "No\n"; } } ?> Output: No Yes No Program 2: php <?php // Declare a string $str = "GeeksforGeeks"; $n = strlen($str); $count = 0; for($i = 0; $i < $n; $i++) { if(ctype_lower($str[$i])) { $count++; } } echo "Totla number of lower case " . "character in string: " . $count; ?> Output: Totla number of lower case character in string: 11 Reference: https://www.php.net/manual/en/function.ctype-lower.php Comment More infoAdvertise with us Next Article PHP | ctype_graph() Function A ashokjaiswal Follow Improve Article Tags : Web Technologies PHP PHP-string PHP-function Similar Reads PHP | ctype_graph() Function A ctype_graph() Function is inbuilt function in PHP. The given string is used to check each character and display all visible character without white-space character. If it's visible then return True otherwise False. Syntax: bool ctype_graph ( $text ) Parameters: The ctype_graph() function accepts a 2 min read PHP | ctype_graph() Function A ctype_graph() Function is inbuilt function in PHP. The given string is used to check each character and display all visible character without white-space character. If it's visible then return True otherwise False. Syntax: bool ctype_graph ( $text ) Parameters: The ctype_graph() function accepts a 2 min read PHP | ctype_print() Function The ctype_print() Function in PHP used to check each and every character of a string are visible or not. If all characters of string are visible then returns TRUE , else if there are any control character then return FALSE. Control Character: A character that does not represent a printable character 2 min read PHP | ctype_print() Function The ctype_print() Function in PHP used to check each and every character of a string are visible or not. If all characters of string are visible then returns TRUE , else if there are any control character then return FALSE. Control Character: A character that does not represent a printable character 2 min read PHP | ctype_upper() Function The ctype_upper() function in PHP used to check each and every character of a given string is in uppercase or not. If the string in upper case then it returns TRUE otherwise returns False. Syntax: ctype_upper (string text) Parameter Used:- $text : The tested string. Return Value: Function returns Tr 2 min read PHP | ctype_upper() Function The ctype_upper() function in PHP used to check each and every character of a given string is in uppercase or not. If the string in upper case then it returns TRUE otherwise returns False. Syntax: ctype_upper (string text) Parameter Used:- $text : The tested string. Return Value: Function returns Tr 2 min read Like