Thanks peeps for you time I think I'll use sort since they're already
integers
----- Original Message -----
From: Dash McElroy <[EMAIL PROTECTED]>
To: 'DaMouse' <[EMAIL PROTECTED]>; PHP - Win <[EMAIL PROTECTED]>
Sent: Friday, November 01, 2002 9:02 PM
Subject: RE: [PHP-WIN] ordering vars in an array


> Try sort (http://www.php.net/manual/en/function.sort.php
> <http://www.php.net/manual/en/function.sort.php> ). You're sorting
numbers,
> so you'd probably want to do this:
>
> $array = sort($array, SORT_NUMERIC);
>
> -Dash
>
> -----Original Message-----
> From: DaMouse [mailto:damouse@;ntlworld.com]
> Sent: Friday, November 01, 2002 12:15 PM
> To: PHP - Win
> Subject: [PHP-WIN] ordering vars in an array
>
>
> right I've got an array full of integers 0,6,7,8,9,10
> only problem is because I grabbed these out of a directory list they are
> ordered
> 0,10,6,7,8,9 anyone got an idea how to rearrange the array to make them go
> the correct way
>
> O
> Ensign Baker
> HCO Officer
> USS Atlantis
>
>


-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to