0

I have an array -

Array
    (
        [1] => 10890.000
        [2] => 3751.000
        [0] => 0
        [3] => 0
        [4] => 0
        [5] => 0
        [6] => 0
        [7] => 0
    )

how can i re-order this keeping the current values under the same index. such as following-

Array
(
    [0] => 0
    [1] => 10890.000
    [2] => 3751.000
    [3] => 0
    [4] => 0
    [5] => 0
    [6] => 0
    [7] => 0
)

i already tried array_values() but it does not return expected output

user-4653387
  • 295
  • 1
  • 4
  • 15

0 Answers0