<?php $values = array("fourth", "first", "second", "third"); $indices = array(3, 0, 1, 2); $arrayToSort = array_combine($indices, $values ); sort($arrayToSort);
You have javascript disabled. You will not be able to edit any code.