I’ve created an array and have assigned values read in from a file like so (only part shown here)…
[php]
$iIndex = array(array());
…
$iIndex[$count][0] = $lineInA;
$iIndex[$count][1] = $lineInB;
…
$count++;
[/php]
I’m visualising $iIndex having values like this…
iIndex[0][0] = “500”
iIndex[0][1] = “Smith”
iIndex[1][0] = “660”
iIndex[1][1] = “Jones”
etc
I’d like to sort the array such that it’s in surname order like this:
660 Jones
500 Smith
I guess array_multisort() is the answer but I can’t get it to work… any help appreciated!
TIA
Paul