Erm
public php v1 · immutable<?php function is_email_type($email) { $email_types = array('gmail', 'yahoo', 'hotmail'); foreach ($email_types as $type) { //int strpos ( string haystack, mixed needle [, int offset] ) if (strpos($email, '@'.$type) !== false) { return true; } } return false; }?>