src/Common/CodeIgniter/Libraries/FormValidation.php
public function valid_email($str)
    {
        if (function_exists('filter_var')) {

            return (bool) filter_var($str, FILTER_VALIDATE_EMAIL);

        } else {

            return parent::valid_email($str);
        }
    }
public function valid_email($str)
    {
        if (function_exists('filter_var')) {

            return (bool) filter_var($str, FILTER_VALIDATE_EMAIL);

        } else {

            return parent::valid_email($str);
        }
    }
public function valid_email ( $ str ) { if ( function_exists ( 'filter_var' ) ) { return ( bool ) filter_var ( $ str , FILTER_VALIDATE_EMAIL ) ; } else { return parent :: valid_email ( $ str ) ; } }
Valid Email, using filter_var if possible falling back to CI's regex

@access  public

@param string

@return  bool
Valid Email using filter_var if possible falling back to CI s regex