protected function is_only_numbers() {
        $args = func_get_args();
        foreach ($args as $arg) {
            if (0 === preg_match('!^[0-9]+$!', $arg)) {
                return false;
            }
        }
        return true;
    }
protected function is_only_numbers() {
        $args = func_get_args();
        foreach ($args as $arg) {
            if (0 === preg_match('!^[0-9]+$!', $arg)) {
                return false;
            }
        }
        return true;
    }
protected function is_only_numbers ( ) { $ args = func_get_args ( ) ; foreach ( $ args as $ arg ) { if ( 0 === preg_match ( '!^[0-9]+$!' , $ arg ) ) { return false ; } } return true ; }
Test if all passed parameters consist of only numbers.

@return bool True if only numbers
Test if all passed parameters consist of only numbers .