<?php
$values = array("fourth", "first", "second", "third");
$indices = array(3, 0, 1, 2);
$arrayToSort = array_combine($indices, $values );
sort($arrayToSort);
var_dump($arrayToSort)
- Output for 5.4.0 - 5.4.15
- Parse error: syntax error, unexpected end of file in plZgq on line 10
Process exited with code 255. - Output for 5.3.25
- Parse error: syntax error, unexpected $end in /in/GZcsc on line 10
Process exited with code 255. - Output for 5.3.0 - 5.3.24
- Parse error: syntax error, unexpected $end in plZgq on line 10
Process exited with code 255.
preferences:
175.3 ms | 1395 KiB | 49 Q