I have an array in php like
Array(
[0]=>0
[1]=>0
[2]=>Array (
[0]=>60
[1]=>35
)
[3]=>Array (
[0]=>60
[1]=>15
)
[4]=>0
[5]=>0
[6]=>0
[7]=>0
[8]=>0
)
what i want is take the values from this and insert in the another array such that the values of the sub_arrays are inserted on the same index of the new array what i want to achieve is
Array(
[0]=>0
[1]=>0
[2]=>60
[3]=>35
[4]=>60
[5]=>15
[6]=>0
[7]=>0
[8]=>0
)
is there anyway to achieve this kindly help me