Helpers and Other Conventions |
(07-11-2016, 05:08 PM)ivantcholakov Wrote: IMO valid_email() should not be deprecated, I doubt that filter_var($address, FILTER_VALIDATE_EMAIL) covers possible valid values like these that include international domain names. This is the email_helper version of valid_email() from CI3: PHP Code: if ( ! function_exists('valid_email')) This is the valid_email() method in CI3's Form_validation library: PHP Code: /** Checking the commit for the difference between the two functions also reveals that the Email library contains yet another copy of this function. The version of the function in the two libraries makes some attempt to deal with non-ASCII domain names, but the version in the email helper does not (probably because the email helper was deprecated over 3 years ago). |
Welcome Guest, Not a member yet? Register Sign In |