public function hash($email)
	{
		if (!filter_var($email, FILTER_VALIDATE_EMAIL))
		{
			throw new InvalidEmailException('Please specify a valid email address');
		}

		return md5(strtolower(trim($email)));
	}
public function hash($email)
	{
		if (!filter_var($email, FILTER_VALIDATE_EMAIL))
		{
			throw new InvalidEmailException('Please specify a valid email address');
		}

		return md5(strtolower(trim($email)));
	}
public function hash ( $ email ) { if ( ! filter_var ( $ email , FILTER_VALIDATE_EMAIL ) ) { throw new InvalidEmailException ( 'Please specify a valid email address' ) ; } return md5 ( strtolower ( trim ( $ email ) ) ) ; }
Helper function to hash an email address.

@param   string  $email
@return  string
@throws  InvalidEmailException
Helper function to hash an email address .