TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Validating Email Addresses In PHP (The Right Way)

2 pointsby nleachover 12 years ago

1 comment

vhfover 12 years ago
Please edit the link as <i>Validating Email Addresses The Wrong Way</i><p>The right way is<p><pre><code> filter_var('bob@example.com', FILTER_VALIDATE_EMAIL); </code></pre> Same for validating the domain. And also : <a href="http://news.ycombinator.com/item?id=4486108" rel="nofollow">http://news.ycombinator.com/item?id=4486108</a>
评论 #4522273 未加载