<?php $emails = [ "foo+bar@gmail.com", ]; foreach ($emails as $mail) { echo filter_var($mail, FILTER_VALIDATE_INT) ? 'valid' : 'invalid'; echo " - $mail\n"; }
You have javascript disabled. You will not be able to edit any code.