I'm curious as to how efficient it is in PHP to store an array with integer indices that are non-consecutive.
If I had an array
$b = array();
$b[1] = "Hello";
$b[18] = "World";
$b[999] = "Test";
Are those keys stored, and then hashed to a new array, how does PHP handle this?
From php wep site on array:
Executing print_r($b); on your code gives the following output: