title: AutoIncrement (re-order) php Array values
body: <p>is there any way to reorder values in array? for example i have</p>
  
  <pre><code> Array (
      "one" =&gt; 0,
       "tow" =&gt; 0,
       "three" =&gt; 0,
       "four" =&gt; 8,
       "apple" =&gt; 4,
       "pink" =&gt; 3,
     );
  </code></pre>
  
  <p>and convert it to</p>
  
  <pre><code> Array (
      "one" =&gt; 0,
       "tow" =&gt; 1,
       "three" =&gt; 2,
       "pink" =&gt; 3,
       "apple" =&gt; 4,
       "four" =&gt; 5,
     );
  </code></pre>
  
  <h2>EDIT:</h2>
  
  <p>please notice that "four" has bigger value it should change to 5 and "apple" &amp;  "pink" should not change</p>