While loop in php examples

how to check e-mail address is valid with php