I' looking to write a e-mail address validator in php before the address gets inserted into my database.
I allready started an want to use the in_array function.
At the moment I use three range functions then merge the arrays together.
I was wondering if the was a more elegant way of populating my array with all lowercase letter, numbers 0 to 9, dashes, underscores and @ signs.
Any help would be most welcome.