/ Published in: PHP
![](/img/icon_sav.png?v3)
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function is_valid_email( $email ) { } 'fred_dred@aol.com', 'fred-dred@aol.com', 'fred.dred@aol.com', 'fred+dred@aol.com' ); foreach( $emails as $email ) { echo $email . ' is' . ( is_valid_email( $email ) ? '' : ' not' ) . " valid\n"; }
Comments
![RSS Feed for Comments RSS Icon](/images/rss.png?v3)