how to check password is strong or weak in php

how to check e-mail address is valid with php