Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
に代わるものはありfilter_var($email, FILTER_VALIDATE_EMAIL)ますか?
filter_var($email, FILTER_VALIDATE_EMAIL)
american@hotmail (たとえば .com なし) などのケースを無効なアドレスとして認識しないように見えるためです。
私のコード:
$c = 0; $email = $_POST["ml"]; if(!filter_var($email, FILTER_VALIDATE_EMAIL)){ $c = 1; // Email non valida }