DEV Community

Discussion on: How to create a PHP validator.

Collapse
 
darkain profile image
Vincent Milum Jr

Just a note: you shouldn't use regex to validate email addresses. There are some assumptions made in that regex that'll prevent valid email addresses from working.

ex-parrot.com/~pdw/Mail-RFC822-Add...

This is especially true in PHP, which has the ability to validate common data types built in. There is no need to reinvent the wheel :)

php.net/manual/en/filter.examples....

Collapse
 
m1000 profile image
m1000

just after post did reslise that.
This is an old Code but thanks for reading