-
testAlnum
-
Returns value if every character is alphabetic or a digit, FALSE otherwise.
-
testAlpha
-
Returns value if every character is alphabetic, FALSE otherwise.
-
testBetween
-
Returns value if it is greater than or equal to $min and less than or equal to $max, FALSE otherwise. If $inc is set to FALSE, then the value must be strictly greater than $min and strictly less than $max.
-
testCcnum
-
Returns value if it is a valid credit card number format. The optional second argument allows developers to indicate the type.
-
testDate
-
Returns $value if it is a valid date, FALSE otherwise. The date is required to be in ISO 8601 format.
-
testDigits
-
Returns value if every character is a digit, FALSE otherwise.
-
testEmail
-
Returns value if it is a valid email format, FALSE otherwise.
-
testFloat
-
Returns value if it is a valid float value, FALSE otherwise.
-
testGreaterThan
-
Returns value if it is greater than $min, FALSE otherwise.
-
testHex
-
Returns value if it is a valid hexadecimal format, FALSE otherwise.
-
testHostname
-
Returns value if it is a valid hostname, FALSE otherwise.
-
testInt
-
Returns value if it is a valid integer value, FALSE otherwise.
-
testIp
-
Returns value if it is a valid IP format, FALSE otherwise.
-
testLessThan
-
Returns value if it is less than $max, FALSE otherwise.
-
testName
-
Returns value if it is a valid format for a person's name, FALSE otherwise.
-
testOneOf
-
Returns value if it is one of $allowed, FALSE otherwise.
-
testPhone
-
Returns value if it is a valid phone number format, FALSE otherwise. The optional second argument indicates the country.
-
testRegex
-
Returns value if it matches $pattern, FALSE otherwise. Uses preg_match() for the matching.
-
testUri
-
-
testZip
-
Returns value if it is a valid US ZIP, FALSE otherwise.