Hello,

Justin French <[EMAIL PROTECTED]> wrote:

> Hi, after asort()ing an array, the numeric keys are obviously 
> out of order.
> what i'd like to do is reset the keys, starting at zero.
> 
> is there a function for this, or do I just walk through the 
> array with a foreach() and do it manually?

So, in other words, after sorting them, you'd like to "change" 
the keys starting from zero?

In that case, I think you can use array_values() ...

- E

__________________________________________________
Do You Yahoo!?
Yahoo! BB is Broadband by Yahoo!  http://bb.yahoo.co.jp/


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

Reply via email to