Re: Once more: [PHP] Array indices - PLEASE HELP!!
| From: | esivertsen | Date: | Wed, 24 Apr 2002 11:51:36 +0000 |
| Subject: | Re: Once more: [PHP] Array indices - PLEASE HELP!! | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-94353@lists.php.net to get a copy of this message | ||
> just run your array through a foreach loop assigning each key-value pair to a
> new array.
OK, I was trying to see if there was a more elegant way to do it, so I wouldn't have to make
the loop.
Like just re-mapping the indices to default values by a short and simple operation. But it will do
the work!
Thanks a lot for your suggestion,
Eivind :-)