Skip to content

Instantly share code, notes, and snippets.

@r37r0m0d3l
Created September 12, 2012 12:13
Show Gist options
  • Save r37r0m0d3l/3706227 to your computer and use it in GitHub Desktop.
Save r37r0m0d3l/3706227 to your computer and use it in GitHub Desktop.
String is email
<?php
function str_is_email($email)
{
return (bool)filter_var($email, FILTER_VALIDATE_EMAIL);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment