Menu
Okay, I am totally mixed up with this problem:
I need an array with various numbers:
[FONT=Courier New]$a = array(100, 5000, 200, 400, 2000, 10, 7500);[/FONT]
and a corresponding array with strings:
[FONT=Courier New]$b = array(“foo”, “bar”, “barfoo”, “foobar”, “hello”, “world”, “hello world”);[/FONT]
I need to sort the number array, so I do:
[FONT=Courier New]sort($a);[/FONT]
My problem is, now the strings in $d don’t correspond to the numbers in $a ? Is there a way to sort $b so it corresponds again with $a again?