title: How to get the i'th element of an associative array?
body: <p>I have the array:</p>
  
  <pre><code>array(2=&gt;'0',3=&gt;'1',5=&gt;'3',4=&gt;'4',7=&gt;'2')
  </code></pre>
  
  <p><strong>Note:</strong> Nothing seems to be in order. So leave the plan to find a numeric order.</p>
  
  <p>How can I fixed the i'th element of this associative array?</p>
  
  <p>For example when <code>i</code> is <code>4</code> the value should be <code>4</code>,
  when <code>i</code> is <code>1</code> the value should be <code>0</code>.</p>
  
  <p><code>array_shift()</code> never solves this requirement. Knowing very well that the logic of looping solves this problem.</p>