validations.php
//  and return true or false accordingly.
and return true or false accordingly.
and return true or false accordingly .
function is_email($email)
        {
                if(!preg_match("/^[A-Za-z0-9\._\-+]+@[A-Za-z0-9_\-+]+(\.[A-Za-z0-9_\-+]+)+$/",$email))
                        return false;
                return true;
        }
function is_email ( $ email ) { if ( ! preg_match ( " /^[A-Za-z0-9\._\-+]+@[A-Za-z0-9_\-+]+(\.[A-Za-z0-9_\-+]+)+$/ " , $ email ) ) return false ; return true ; }
and return true or false accordingly.
and return true or false accordingly .