validEmail
(/rs/public/functions.php)
validEmail -- Check for valid email address format.
Description
int validEmail
($addr)
This function will check string $addr to see if it is a valid format for an email address (user@host.dom or valid variations thereof). Illegal characters are also checked for. This function returns 1 on finding $addr as a valid address and 0 otherwise.
It should be noted that this function does not check if an email address exists or is real. It merely checks the format of the address.
Examples
validEmail ("foo") /* Returns 0 */
validEmail ("foo@bar.dom") /* Returns 1 */
validEmail ("foo@bar,dom") /* Returns 0 */
Related Functions
None.
Dependencies
stringSearchArray
Function Index
|