Keys get juggled too
Three writes into an array with keys of different types.
<?php$box = [];$box["1"] = 'a';$box[true] = 'b';$box["01"] = 'c';echo count($box) . PHP_EOL;echo json_encode(array_keys($box)) . PHP_EOL;echo $box[1] . PHP_EOL;1. Predict the output
Tap the lines in the order you think they print.
- 1…
- 2…
- 3…