php undefined index

Solutions on MaxInterview for php undefined index by the best coders in the world

showing results for - "php undefined index"
Oskar
12 May 2018
1// Your array index has no value or is not referencing anything,
2// The easiest way to overcome this is to simply check whether
3// it has been defined
4if (isset($arr[$i])) {
5	// Do something
6}