Check email is valid or not in php

technical talkiess
0

Check email is valid or not in php

php me email kaise check kare

email sahi hai ya nahi wo check kare 

how to use filter_val function in php

<!DOCTYPE html>

<html>

<body>


<h1>Validate the email is here</h1>


<?php

$emails = "vusrate8@gmail.com";

if(filter_var($emails,FILTER_VALIDATE_EMAIL)){

    echo "email is valid";

}else{

echo "Email is not valid";

}



?> 


</body>

</html>


Post a Comment

0Comments

Thanks you for commenting your questions. I will see question and respond you.

Post a Comment (0)