运行 ❯
获取自己的
PHP
服务器
×
更改方向
更改主题,从浅色到深色
访问 Spaces
<!DOCTYPE html> <html> <body> <?php $email = "john.doe@example.com"; // Remove all illegal characters from email $email = filter_var($email, FILTER_SANITIZE_EMAIL); // Validate e-mail if (!filter_var($email, FILTER_VALIDATE_EMAIL) === false) { echo("$email is a valid email address"); } else { echo("$email is not a valid email address"); } ?> </body> </html>
[email protected]
是一个有效的电子邮件地址