title: How to remove array elements without deleting the keys
body: <p>I tried to remove few array elements from my PHP script using PHP's unset() built-in funciton.<br>here is the code, that I tried.</p>
  
  <pre><code>&lt;?php
  
  $my_array = array('.','..','one','two','three','four');
  
  unset($my_array[1] , $my_array[0]);
  
  echo '&lt;pre&gt;';
  
  print_r($my_array);
  
  echo '&lt;/pre&gt;';
  
  ?&gt;
  </code></pre>
  
  <p>Then I got this output.</p>
  
  <pre>Array
  (
      [2] => one
      [3] => two
      [4] => three
      [5] => four
  )
  </pre>
  
  <p>but this is not what I'm expected. I want somthing like this.</p>
  
  <pre>Array
  (
      [0] => one
      [1] => two
      [2] => three
      [3] => four
  )
  </pre>
  
  <p>how can I achive this? thanks.</p>