The PHP t3lib_div validEmail function is used to validate email addresses. It checks whether the email address provided as input is in a valid format or not.
This function takes a single parameter, which is the email address to be validated. It returns true if the email address is in a valid format, and false otherwise.
Example 1: $email = "example.com"; if (t3lib_div::validEmail($email)) { echo "Valid email address!"; } else { echo "Invalid email address."; }
In this example, we check if the email address "example.com" is valid or not. As it is not in a valid format, the output will be "Invalid email address."
Example 2: $email = "example@example.com"; if (t3lib_div::validEmail($email)) { echo "Valid email address!"; } else { echo "Invalid email address."; }
In this example, we check if the email address "example@example.com" is valid or not. As it is in a valid format, the output will be "Valid email address!"
This function is part of the TYPO3 CMS library, which is a PHP package for building content management systems.
PHP t3lib_div::validEmail - 30 examples found. These are the top rated real world PHP examples of t3lib_div::validEmail extracted from open source projects. You can rate examples to help us improve the quality of examples.