PHP 7.1.0 Alpha 2 Released

The OutOfBoundsException class


استثنا ایجاد شده در صورتی که مقدار کلید صحیح نباشد

Class synopsis

OutOfBoundsException extends RuntimeException {
/* Inherited methods */
final public string Exception::getMessage ( void )
final public int Exception::getCode ( void )
final public string Exception::getFile ( void )
final public int Exception::getLine ( void )
final public array Exception::getTrace ( void )
final public string Exception::getTraceAsString ( void )
public string Exception::__toString ( void )
final private void Exception::__clone ( void )
add a note add a note

User Contributed Notes 2 notes

Jacob V. Rasmussen
10 months ago
OutOfRangeException is for Integers out of range.
OutOfBoundsException is for key values, not found in the target array.
1 year ago
i wish i know what's the difference between
OutOfRangeException and OutOfBoundsException lol
To Top