foreach loop in php example

how to check e-mail address is valid with php