Bitrix Site Manager

check_email

bool
check_email(
  string email
)

The function check_email checks an e-mail address for syntax validity. Returns true if the address specified is valid, or false otherwise.

Parameters

ParameterDescription
email e-mail address to be verified..

Example



<?
echo (check_email("Bitrix <admin@bitrix.com>")) ? "OK!" : "Error!"; // OK
echo (check_email("admin@bitrix.com")) ? "OK!" : "Error!"; // OK
echo (check_email("admin@bi$trix.com")) ? "OK!" : "Error!"; // ERROR
?>