Remove and Compact Array

Array
(
    [0] => 2
    [1] =>  6
    [2] =>  8
)
start a
Array
(
    [0] => Apple
    [1] => Pear
    [2] => Milk
    [3] => Strawberry
    [4] => Banna
    [5] => Berries
    [6] => Pie
    [7] => Cake
    [8] => Bread
    [9] => Cupcakes
)
end a
Array
(
    [0] => Apple
    [1] => Pear
    [2] => Strawberry
    [3] => Banna
    [4] => Berries
    [5] => Cake
    [6] => Cupcakes
)
end d
Array
(
)