mirror of
https://github.com/disposable-email-domains/disposable-email-domains.git
synced 2024-11-22 08:38:12 +08:00
fix php example formatting
This commit is contained in:
parent
8f42cb3ac3
commit
aec331bf3b
16
README.md
16
README.md
@ -10,16 +10,14 @@ Example Usage
|
||||
PHP
|
||||
```php
|
||||
function is_temp_mail($mail) {
|
||||
|
||||
$list = file_get_contents ('disposable_email_blacklist.conf');
|
||||
$mail_domains_ko = explode("\n", $list);
|
||||
|
||||
foreach($mail_domains_ko as $ko_mail) {
|
||||
list(,$mail_domain) = explode('@',$mail);
|
||||
if(strcasecmp($mail_domain, $ko_mail) == 0){
|
||||
return true;
|
||||
}
|
||||
$list = file_get_contents ('disposable_email_blacklist.conf');
|
||||
$mail_domains_ko = explode("\n", $list);
|
||||
foreach($mail_domains_ko as $ko_mail) {
|
||||
list(,$mail_domain) = explode('@',$mail);
|
||||
if(strcasecmp($mail_domain, $ko_mail) == 0){
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user