php check if string email

Solutions on MaxInterview for php check if string email by the best coders in the world

we are a community of more than 2 million smartest coders
registration for
employee referral programs
are now open
get referred to google, amazon, flipkart and more
register now
  
pinned-register now
showing results for - "php check if string email"
Noemi
01 Aug 2017
1<?php
2    if(filter_var("some@address.com", FILTER_VALIDATE_EMAIL)) {
3        // valid address
4    }
5    else {
6        // invalid address
7    }
8?>
9