protected function isSoftInteger($number)
    {
        if (!is_scalar($number) || $number === null) {
            return false;
        }
        
        $number = (string) $number;
        
        return preg_match('/^[-+]?\d+$/', $number);
    }
protected function isSoftInteger($number)
    {
        if (!is_scalar($number) || $number === null) {
            return false;
        }
        
        $number = (string) $number;
        
        return preg_match('/^[-+]?\d+$/', $number);
    }
protected function isSoftInteger ( $ number ) { if ( ! is_scalar ( $ number ) || $ number === null ) { return false ; } $ number = ( string ) $ number ; return preg_match ( '/^[-+]?\d+$/' , $ number ) ; }
Test if integer or string integer

@param *scalar $number Value to test

@return bool
Test if integer or string integer