050 - array_shift & array_unshift (array_shift = delete form index 0, array_unshift = add at index 0 )
Array
(
    [0] => two
    [1] => three
)
Array
(
    [0] => pink
    [1] => green
    [2] => yellow
    [3] => one
    [4] => two
    [5] => three
)
<?php // 050 - array_shift & array_unshift (array_shift = delete form index 0, array_unshift = add at index 0 ) echo "</br><span class='myheading'>050 - array_shift & array_unshift (array_shift = delete form index 0, array_unshift = add at index 0 )</span></br>"; $fruit_050 = ["one", "two", "three"]; array_shift($fruit_050); /*Delete on start */ echo "<pre>"; print_r($fruit_050); echo "</pre>"; $fruit_a_050 = ["one", "two", "three"]; array_unshift($fruit_a_050,"pink","green","yellow");/* Add from Start*/ echo "<pre>"; print_r($fruit_a_050); echo "</pre>"; ?>