E-mail simples de PHP, validação de URL e IP

o email echo filter_var(’email@domain.com’, FILTER_VALIDATE_EMAIL); // email@domain.comecho filter_var(‘domain.com’, FILTER_VALIDATE_EMAIL); // false URL echo filter_var(‘http://rogeriolino.com’, FILTER_VALIDATE_URL); // http://rogeriolino.comecho filter_var(‘rogeriolino.com’, FILTER_VALIDATE_URL); // false IP echo filter_var(‘127.0.0.1’, FILTER_VALIDATE_IP); // 127.0.0.1echo filter_var(‘127.0.1’, FILTER_VALIDATE_IP); // …

Continuar lendo