Character Type Functions PHP

0
Your rating: None

Here I am listing a couple of Character Type functions, added to PHP in version 4.3.These functions test a given value against certain constraints for the current locale (established by the setlocale() function).

The Character Type functions provide validation specific to the given environment(i.e., the locale setting).

Function

Checks If Value Contains

ctype_alnum() Letters and numbers
ctype_alpha() Letters only
ctype_cntrl() Control characters
ctype_digit() Numbers
ctype_graph() Printable characters, except spaces
ctype_lower() Lowercase letters
ctype_print() Printable characters
ctype_punct() Punctuation
ctype_space() White space characters
ctype_upper() Uppercase characters
ctype_xdigit() Hexadecimal numbers

Post new comment

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Copy the characters (respecting upper/lower case) from the image.

Cumulus Tag Cloud

Kiran Says

SEO Architect,SEO Specialist reflect my values.

By enduring black hat methods the SEO industry is setting itself up for washout and sleepwalking into oblivion.

Jobs in India