title: How do I remove a specific key in an array using php?
body: <p>I have an array with 4 values. I would like to remove the value at the 2nd position and then have the rest of the key's shift down one.</p>
  
  <pre><code>$b = array(123,456,789,123);
  </code></pre>
  
  <p>Before Removing the Key at the 2nd position:</p>
  
  <blockquote>
    <p>Array ( [0] => 123 [1] => 456 [2] => 789 [3] => 123 )</p>
  </blockquote>
  
  <p>After I would like the remaining keys to shift down one to fill in the space of the missing key</p>
  
  <blockquote>
    <p>Array ( [0] => 123 [1] => 789 [2] => 123 )</p>
  </blockquote>
  
  <p>I tried using unset() on the specific key, but it would not shift down the remaining keys. How do I remove a specific key in an array using php? </p>