I have an array something like below.
Array
(
[0] => 100
[1] =>
[2] => 107
[3] => 109
)
I may get empty value more than one also. I just wanted to move the empty values to down.
Thanks for reading my question and waiting for your valuable answer.
I’d just sort it in reverse order
You’d end up with the values:
Edit: to get the values in the order specified in the below comment:
array_merge documentation