Closed jakubmisek closed 2 years ago
e.g. when array_shift() results in an empty array; the array's next insert ID should be 0;
0
$a[] = 0; array_shift($a); $a[] = 0; print_r( $a ); // expected array( 0 => 0 )
expected: array( 0 => 0 ) actual: array( 1 => 0 )
array( 0 => 0 )
array( 1 => 0 )
e.g. when array_shift() results in an empty array; the array's next insert ID should be
0
;expected:
array( 0 => 0 )
actual:array( 1 => 0 )