0

I have a array like this

Array
(
[0] => Value1
[22] => Value2
[23] => Value3
[28] => Value4
)

Now i want that it looks like this

Array
(
[0] => Value1
[1] => Value2
[2] => Value3
[3] => Value4
)

I tried a lot of array sort methods but i dont found something that works right.

Phil795
  • 934
  • 4
  • 20
  • 38
  • Just make a loop that goes through the Array and assigns each value to a new array. I couldn't write the answer because this thread is a duplicate and it won't let me. – josh.thomson Jun 09 '15 at 10:15
  • Thanks, i dont searched with the right keys :D – Phil795 Jun 09 '15 at 11:00

0 Answers0