public static function isInteger($object, $native = false)
    {
        return $native
            ? is_int($object)
            : is_int($object) || $object instanceof \SplInt;
    }
public static function isInteger($object, $native = false)
    {
        return $native
            ? is_int($object)
            : is_int($object) || $object instanceof \SplInt;
    }
public static function isInteger ( $ object , $ native = false ) { return $ native ? is_int ( $ object ) : is_int ( $ object ) || $ object instanceof \ SplInt ; }
Returns true if the object is an integer. If the optional native parameter is set to true, it will only return
true if object is a native int.

@category Object Functions

@param mixed $object the object
@param bool $native optional, if true will not consider instances of SplInt as integers

@return bool
Returns true if the object is an integer . If the optional native parameter is set to true it will only return true if object is a native int .