Skip to content

Instantly share code, notes, and snippets.

@serhanozcan
Created December 4, 2017 21:27
Show Gist options
  • Save serhanozcan/d1502616a5c033e38afd77980b187691 to your computer and use it in GitHub Desktop.
Save serhanozcan/d1502616a5c033e38afd77980b187691 to your computer and use it in GitHub Desktop.
Php ile e-posta kontrolü yapmak (Güvenlik Önlemi)
<?php
$email = "serhanozcan@yandex.com";
if ( filter_var($email, FILTER_VALIDATE_EMAIL) ){ //Burası gelen değerin mail türünde olup olmadığını denetler.
print 'e-mail gecerli';
} else {
print 'e-mail gecersiz!';
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment