Array
(
[0] => 1
[1] => 2
)
Checking 0:
Warning: Undefined array key "$i" in /in/vePQ1 on line 9
Warning: Trying to access array offset on null in /in/vePQ1 on line 9
Bad:
Good: 1
Warning: Undefined array key "$i" in /in/vePQ1 on line 11
Bad:
Good: 1
Checking 1:
Warning: Undefined array key "$i" in /in/vePQ1 on line 9
Warning: Trying to access array offset on null in /in/vePQ1 on line 9
Bad:
Good: 2
Warning: Undefined array key "$i" in /in/vePQ1 on line 11
Bad:
Good: 2
Array
(
[0] => 1
[1] => 2
)
Checking 0:
Warning: Undefined array key "$i" in /in/vePQ1 on line 9
Warning: Trying to access array offset on value of type null in /in/vePQ1 on line 9
Bad:
Good: 1
Warning: Undefined array key "$i" in /in/vePQ1 on line 11
Bad:
Good: 1
Checking 1:
Warning: Undefined array key "$i" in /in/vePQ1 on line 9
Warning: Trying to access array offset on value of type null in /in/vePQ1 on line 9
Bad:
Good: 2
Warning: Undefined array key "$i" in /in/vePQ1 on line 11
Bad:
Good: 2
Output for 7.4.0 - 7.4.33
Array
(
[0] => 1
[1] => 2
)
Checking 0:
Notice: Undefined index: $i in /in/vePQ1 on line 9
Notice: Trying to access array offset on value of type null in /in/vePQ1 on line 9
Bad:
Good: 1
Notice: Undefined index: $i in /in/vePQ1 on line 11
Bad:
Good: 1
Checking 1:
Notice: Undefined index: $i in /in/vePQ1 on line 9
Notice: Trying to access array offset on value of type null in /in/vePQ1 on line 9
Bad:
Good: 2
Notice: Undefined index: $i in /in/vePQ1 on line 11
Bad:
Good: 2