PHP 8.4.24 Released!

Voting

: max(eight, eight)?
(Example: nine)

The Note You're Voting On

jonathan dot lydall at gmail dot removethispart dot com
18 years ago
Because making a truly correct email validation function is harder than one may think, consider using this one which comes with PHP through the filter_var function (http://www.php.net/manual/en/function.filter-var.php):

<?php
$email = "someone@domain .local";

if(!filter_var($email, FILTER_VALIDATE_EMAIL)) {
    echo "E-mail is not valid";
} else {
    echo "E-mail is valid";
}
?>

<< Back to user notes page

To Top