Reset the numeric keys of an array
<p>I have an array like this</p>

<pre><code>$array = array(
  1 =&gt; 'one',
  2 =&gt; 'two',
  3 =&gt; 'three',
  'row' =&gt; 'four',
  'newRow' =&gt; 'five',
);
</code></pre>

<p>I need to re-index the numeric keys - 1, 2, 3.</p>

<blockquote>
  <blockquote>
    <p>Expected Output:</p>
  </blockquote>
</blockquote>

<pre><code>$array = array(
  0 =&gt; 'one',
  1 =&gt; 'two',
  2 =&gt; 'three',
  'row' =&gt; 'four',
  'newRow' =&gt; 'five',
);
</code></pre>

<p>I've tried with  <code>array_values</code>, but the string keys also gets indexed.</p>

<p>What is the best way to do this?</p>

<p>Thanks.</p>