OutOfRangeException is for Integers out of range.
OutOfBoundsException is for key values, not found in the target array.
(PHP 5 >= 5.1.0, PHP 7)
Exception thrown if a value is not a valid key. This represents errors that cannot be detected at compile time.
OutOfRangeException is for Integers out of range.
OutOfBoundsException is for key values, not found in the target array.
i wish i know what's the difference between
OutOfRangeException and OutOfBoundsException lol