WorkerPool
WorkerPool copied to clipboard
array_shift should not be used on associative array because it reindexes it
% php -a
Interactive shell
php > $x = [100 => 100, 200 => 200, 300 => 300];
php > echo json_encode($x);
{"100":100,"200":200,"300":300}
php > array_shift($x);
php > echo json_encode($x);
[200,300]