I noticed that CodeIgniter has implemented the valid_email() function, in which they are using preg_match.
Why didn’t they use PHP’s filter with FILTER_VALIDATE_EMAIL?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
filter_var()requires PHP 5.2 or greater. CodeIgniter runs on PHP 5.1.6 or greater. The CodeIgniter developers can’t guarantee that people will have access to thefilter_var()function.