Skip to content

Instantly share code, notes, and snippets.

@mpezzi
Created October 14, 2011 14:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save mpezzi/1287269 to your computer and use it in GitHub Desktop.
Save mpezzi/1287269 to your computer and use it in GitHub Desktop.
PHP Validate Human Name
function valid_human_name($name) {
return preg_match("/^[A-Z][a-zA-Z '&-]*[A-Za-z]$/", $name);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment