3 ms·
In PHP you have default functions that can verify emails : filter_var('bob@example.com', FILTER_VALIDATE_EMAIL) more info here : http://php.net/manual/en/func
by baby 14y ago
In PHP you have default functions that can verify emails :
filter_var('bob@example.com', FILTER_VALIDATE_EMAIL)
more info here : http://php.net/manual/en/function.filter-var.php http://php.net/manual/en/function.filter-var.php
- davidcelis 14y agoAnd that uses a giant regex.
- lucb1e 14y agoAt least it's a standardized way of doing it. If it turns out to contain an error, it can be fixed for all websites with an update.