| 1 |
<?php |
| 2 |
|
| 3 |
// Start of ctype v. |
| 4 |
|
| 5 |
/** |
| 6 |
* Check for alphanumeric character(s) |
| 7 |
* @link http://www.php.net/manual/en/function.ctype-alnum.php |
| 8 |
* @param text string <p> |
| 9 |
* The tested string. |
| 10 |
* </p> |
| 11 |
* @return bool true if every character in text is either |
| 12 |
* a letter or a digit, false otherwise. |
| 13 |
*/ |
| 14 |
function ctype_alnum ($text) {} |
| 15 |
|
| 16 |
/** |
| 17 |
* Check for alphabetic character(s) |
| 18 |
* @link http://www.php.net/manual/en/function.ctype-alpha.php |
| 19 |
* @param text string <p> |
| 20 |
* The tested string. |
| 21 |
* </p> |
| 22 |
* @return bool true if every character in text is |
| 23 |
* a letter from the current locale, false otherwise. |
| 24 |
*/ |
| 25 |
function ctype_alpha ($text) {} |
| 26 |
|
| 27 |
/** |
| 28 |
* Check for control character(s) |
| 29 |
* @link http://www.php.net/manual/en/function.ctype-cntrl.php |
| 30 |
* @param text string <p> |
| 31 |
* The tested string. |
| 32 |
* </p> |
| 33 |
* @return bool true if every character in text is |
| 34 |
* a control character from the current locale, false otherwise. |
| 35 |
*/ |
| 36 |
function ctype_cntrl ($text) {} |
| 37 |
|
| 38 |
/** |
| 39 |
* Check for numeric character(s) |
| 40 |
* @link http://www.php.net/manual/en/function.ctype-digit.php |
| 41 |
* @param text string <p> |
| 42 |
* The tested string. |
| 43 |
* </p> |
| 44 |
* @return bool true if every character in the string |
| 45 |
* text is a decimal digit, false otherwise. |
| 46 |
*/ |
| 47 |
function ctype_digit ($text) {} |
| 48 |
|
| 49 |
/** |
| 50 |
* Check for lowercase character(s) |
| 51 |
* @link http://www.php.net/manual/en/function.ctype-lower.php |
| 52 |
* @param text string <p> |
| 53 |
* The tested string. |
| 54 |
* </p> |
| 55 |
* @return bool true if every character in text is |
| 56 |
* a lowercase letter in the current locale. |
| 57 |
*/ |
| 58 |
function ctype_lower ($text) {} |
| 59 |
|
| 60 |
/** |
| 61 |
* Check for any printable character(s) except space |
| 62 |
* @link http://www.php.net/manual/en/function.ctype-graph.php |
| 63 |
* @param text string <p> |
| 64 |
* The tested string. |
| 65 |
* </p> |
| 66 |
* @return bool true if every character in text is |
| 67 |
* printable and actually creates visible output (no white space), false |
| 68 |
* otherwise. |
| 69 |
*/ |
| 70 |
function ctype_graph ($text) {} |
| 71 |
|
| 72 |
/** |
| 73 |
* Check for printable character(s) |
| 74 |
* @link http://www.php.net/manual/en/function.ctype-print.php |
| 75 |
* @param text string <p> |
| 76 |
* The tested string. |
| 77 |
* </p> |
| 78 |
* @return bool true if every character in text |
| 79 |
* will actually create output (including blanks). Returns false if |
| 80 |
* text contains control characters or characters |
| 81 |
* that do not have any output or control function at all. |
| 82 |
*/ |
| 83 |
function ctype_print ($text) {} |
| 84 |
|
| 85 |
/** |
| 86 |
* Check for any printable character which is not whitespace or an |
| 87 |
alphanumeric character |
| 88 |
* @link http://www.php.net/manual/en/function.ctype-punct.php |
| 89 |
* @param text string <p> |
| 90 |
* The tested string. |
| 91 |
* </p> |
| 92 |
* @return bool true if every character in text |
| 93 |
* is printable, but neither letter, digit or blank, false otherwise. |
| 94 |
*/ |
| 95 |
function ctype_punct ($text) {} |
| 96 |
|
| 97 |
/** |
| 98 |
* Check for whitespace character(s) |
| 99 |
* @link http://www.php.net/manual/en/function.ctype-space.php |
| 100 |
* @param text string <p> |
| 101 |
* The tested string. |
| 102 |
* </p> |
| 103 |
* @return bool true if every character in text |
| 104 |
* creates some sort of white space, false otherwise. Besides the |
| 105 |
* blank character this also includes tab, vertical tab, line feed, |
| 106 |
* carriage return and form feed characters. |
| 107 |
*/ |
| 108 |
function ctype_space ($text) {} |
| 109 |
|
| 110 |
/** |
| 111 |
* Check for uppercase character(s) |
| 112 |
* @link http://www.php.net/manual/en/function.ctype-upper.php |
| 113 |
* @param text string <p> |
| 114 |
* The tested string. |
| 115 |
* </p> |
| 116 |
* @return bool true if every character in text is |
| 117 |
* an uppercase letter in the current locale. |
| 118 |
*/ |
| 119 |
function ctype_upper ($text) {} |
| 120 |
|
| 121 |
/** |
| 122 |
* Check for character(s) representing a hexadecimal digit |
| 123 |
* @link http://www.php.net/manual/en/function.ctype-xdigit.php |
| 124 |
* @param text string <p> |
| 125 |
* The tested string. |
| 126 |
* </p> |
| 127 |
* @return bool true if every character in text is |
| 128 |
* a hexadecimal 'digit', that is a decimal digit or a character from |
| 129 |
* [A-Fa-f] , false otherwise. |
| 130 |
*/ |
| 131 |
function ctype_xdigit ($text) {} |
| 132 |
|
| 133 |
// End of ctype v. |
| 134 |
?> |