validations.php
//  and return true or false accordingly.
and return true or false accordingly.
and return true or false accordingly .
function is_number($number)
        {
                if(!preg_match("/^\-?\+?[0-9e1-9]+$/",$number))
                        return false;
                return true;
        }
function is_number ( $ number ) { if ( ! preg_match ( " /^\-?\+?[0-9e1-9]+$/ " , $ number ) ) return false ; return true ; }
and return true or false accordingly.
and return true or false accordingly .