PHP 5.6.22 is available

The OutOfBoundsException class

Introduction

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

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

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