src/tools/Audit.php
function email($str,$mx=TRUE) {
		$hosts=array();
		return is_string(filter_var($str,FILTER_VALIDATE_EMAIL)) &&
			(!$mx || getmxrr(substr($str,strrpos($str,'@')+1),$hosts));
	}
function email($str,$mx=TRUE) {
		$hosts=array();
		return is_string(filter_var($str,FILTER_VALIDATE_EMAIL)) &&
			(!$mx || getmxrr(substr($str,strrpos($str,'@')+1),$hosts));
	}
function email ( $ str , $ mx = TRUE ) { $ hosts = array ( ) ; return is_string ( filter_var ( $ str , FILTER_VALIDATE_EMAIL ) ) && ( ! $ mx || getmxrr ( substr ( $ str , strrpos ( $ str , '@' ) + 1 ) , $ hosts ) ) ; }
Return TRUE if string is a valid e-mail address;
Check DNS MX records if specified
@return bool
@param $str string
@param $mx boolean
Return TRUE if string is a valid e - mail address ; Check DNS MX records if specified