<?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.0 - 7.1.7
- Parse error: syntax error, unexpected 'if' (T_IF) in /in/WSsf3 on line 24
Process exited with code 255. - Output for 7.0.0 - 7.0.20
- Parse error: syntax error, unexpected ',', expecting ']' in /in/WSsf3 on line 15
Process exited with code 255.
preferences:
176.8 ms | 1395 KiB | 36 Q