how to swap value in php? : I have an array

    $a = [1,9,8,7,6,5]


I want to swap value in such way in PHP that if there is a 1,it should swap with next value i.e  output should be
   $b = [9,1,8,7,6,5]