Page 1 of 1

What's that function?

Posted: Wed Mar 08, 2006 6:07 pm
by evilmonkey
I'm sufferring I bad case of mental block. I need the PHP function that will order my keys in a normal numeric order. For instance:
$array[0] = "stuff"
$array[2] = "stuff1"
$array[3] = "stuff2"
$array[5] = "stuff3"

and I need

$array[0] = "stuff"
$array[1] = "stuff1"
$array[2] = "stuff2"
$array[3] = "stuff3"

Thanks. Sorry to litter the board with this. :)

Posted: Wed Mar 08, 2006 7:09 pm
by feyd

Posted: Wed Mar 08, 2006 7:55 pm
by evilmonkey
Wasn't what I was thinking of, but it did the trick. Thanks. :)

Posted: Thu Mar 09, 2006 12:43 am
by s.dot
you're probably thinking of sort() or asort(), or one of the functions that sorts arrays