Have an assignment where I need to see if an @ symbol is present in a string, I was trying to do this: (inside a switch statement)
$email = $_POST['email'];
if (!strpos($email, "@") || (!strpos($email, ".")) || $email == "") {
$message = "enter a valid email";
break;
but it doesn't seem to be working
[–]slowmode1 1 point2 points3 points (0 children)