PHP Ctype (Character type) functions

Ctype functions PHP provides some of the built-in functions, which are used to verify the characters in the string i.e. to check whether a string contains the characters of specific types. List of the Ctype functions in PHP Here, is the list of the PHP Ctype functions... ctype_alnum() - Checks whether given string contains all alphabets or numbers. ctype_alpha() - Checks whether given string contains all alphabets. ctype_digit() - Checks whether given string contains all digits. ctype_space() - Checks whether given string contains spaces (whitespaces, tab, new line etc). ctype_lower() - Checks whether given string contains all lowercase characters. ctype_upper() - Checks whether given string contains all uppercase characters. ctype_punct() - Checks whether given string contains all punctuation characters. ctype_xdigit() - Checks whether given string contains all hexadecimal digits. ctype_print() - Checks whether given string contains all printable characters. ctype_graph() - Checks whether given string contains all printable characters expect space. ctype_cntrl() - Checks whether given string contains all control characters. PHP Ctype functions Example

PHP Ctype (Character type) capacities: Here, we will find out about the character type (Ctype) works in PHP. Ctype capacities PHP gives a portion of the implicit capacities, which are utilized to check the characters in the string, for example, to check whether a string contains the characters of explicit sorts. Rundown of the Ctype … Read more

error: Alert: Content is protected!!