<?php
$basket = [
'Items' => [
[
'a' => 'b',
'b' => 'c',
'd' => 'e'
],
[
'a' => 'b',
'd' => 'e',
'b' => 'c'
],
[,
'd' => 'e',
'a' => 'b',
'b' => 'c'
]
],
];
if (isset($basket['items']) && is_array($basket['items'])) {
array_walk($basket['items'], 'ksort');
}
- Output for 7.1.4 - 7.1.7
- Fatal error: Cannot use empty array elements in arrays in /in/C8etL on line 4
Process exited with code 255. - Output for 7.1.0 - 7.1.3
- Fatal error: Cannot use empty array elements in arrays in /in/C8etL on line 20
Process exited with code 255. - Output for 7.0.0 - 7.0.20
- Parse error: syntax error, unexpected ',', expecting ']' in /in/C8etL on line 15
Process exited with code 255.
preferences:
174.34 ms | 1395 KiB | 36 Q