[PHP] Once more: [PHP] Array indices - PLEASE HELP!!

2002-04-24 Thread esivertsen
Does nobody have a suggestion to the below? Perhaps there is an easy solution, but I cant see it at the time. Eivind Hi all, I have a question regarding array indices: At a certain point in code, I run array_diff() on two arrays to produce a reduced version of one of the argument

Re: [PHP] Once more: [PHP] Array indices - PLEASE HELP!!

2002-04-24 Thread Jason Wong
On Wednesday 24 April 2002 17:14, esivertsen wrote: Does nobody have a suggestion to the below? Perhaps there is an easy solution, but I cant see it at the time. Eivind Hi all, I have a question regarding array indices: At a certain point in code, I run array_diff() on two

Re: [PHP] Once more: [PHP] Array indices - PLEASE HELP!!

2002-04-24 Thread esivertsen
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