Drupal 8  8.0.2
Input validation

Functions

 valid_email_address ($mail)
 

Detailed Description

Functions to validate user input.

Function Documentation

valid_email_address (   $mail)

Verifies the syntax of the given email address.

Parameters
string$mailA string containing an email address.
Returns
bool TRUE if the address is in a valid format.
Deprecated:
in Drupal 8.0.x-dev, will be removed before Drupal 9.0.0. Use ::service('email.validator')->isValid().