public function email($input, $key, $lang)
    {
        $lang = $this->custom('email', $lang);
        if (filter_var($input[$key], FILTER_VALIDATE_EMAIL) === false) {
            return str_replace(':field', $key, $lang);
        }
    }
public function email($input, $key, $lang)
    {
        $lang = $this->custom('email', $lang);
        if (filter_var($input[$key], FILTER_VALIDATE_EMAIL) === false) {
            return str_replace(':field', $key, $lang);
        }
    }
public function email ( $ input , $ key , $ lang ) { $ lang = $ this -> custom ( 'email' , $ lang ) ; if ( filter_var ( $ input [ $ key ] , FILTER_VALIDATE_EMAIL ) === false ) { return str_replace ( ':field' , $ key , $ lang ) ; } }
Parses an email validation field.

@param array  $input - Input to be validated
@param string $key   - Validation key
@param string $lang  - Language string

@return string
Parses an email validation field .