title: How do I insert a value in between two keys in an array using php?
body: <p>I have an array with 3 values:</p>
  
  <pre><code>$b = array('A','B','C');
  </code></pre>
  
  <p>This is what the original array looks like:</p>
  
  <blockquote>
    <p>Array ( [0] => A [1] => B [2] => C )</p>
  </blockquote>
  
  <p>I would like to insert a specific value(For example, the letter 'X') at the position between the first and second key, and then shift all the values following it down one. So in effect it would become the 2nd value, the 2nd would become the 3rd, and the 3rd would become the 4th.</p>
  
  <p>This is what the array should look like afterward:</p>
  
  <blockquote>
    <p>Array ( [0] => A [1] => X [2] => B [3] => C )</p>
  </blockquote>
  
  <p>How do I insert a value in between two keys in an array using php?</p>