php-general | 2003022
Date: 02/24/03
- Next message: Leif K-Brooks: "Re: [PHP] <button> and </button>"
- Previous message: - Edwin: "Re: [PHP] re-populate array keys"
- In reply to: John W. Holmes: "RE: [PHP] re-populate array keys"
- Next in thread: - Edwin: "Re: [PHP] re-populate array keys"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Oooops!
Didn't see it, despite looking over and over :)
Thx,
Justin
on 24/02/03 3:42 PM, John W. Holmes (holmes072000 <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?
>
> Why don't you just use sort()?
>
> ---John W. Holmes...
>
> PHP Architect - A monthly magazine for PHP Professionals. Get your copy
> today. http://www.phparch.com/
>
>
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
- Next message: Leif K-Brooks: "Re: [PHP] <button> and </button>"
- Previous message: - Edwin: "Re: [PHP] re-populate array keys"
- In reply to: John W. Holmes: "RE: [PHP] re-populate array keys"
- Next in thread: - Edwin: "Re: [PHP] re-populate array keys"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

