Inbuilt PHP Functions - ctype_lower
There are many inbuilt functions available in php that can be used to perform various tasks. One of these is ctype_lower. This function checks whether a string consists of only lower or upper case alphabetical characters a-z. It returns a boolean value, either True or False. The function can be used in an if-block.
This function is a part of the ctype extension, which is enabled by default if you are using PHP 4.2 or higher. This extension is basically a set of functions that are used to verify that the characters in a given string are correct.
These functions also check for certain types of spaces and special characters like tabs, line breaks, etc. The ctype_space() function, for example, checks if a string consists of whitespace characters. These include blanks and any control character that leaves a space on the page, such as the narrow no-break space or the Mongolian vowel separator.
You can also use the ctype_digit() function to check whether a string consists of digits or not. This can be useful if you are testing a number or a string that is supposed to be a numeric value in hexadecimal notation.
Another inbuilt function that can be used is the ctype_alpha() function, which checks if a string contains only letters or not. This can be useful if a string contains letters, numbers or other characters that do not belong to the alphabet. The function can be used in an