title: Remove all elements before x from an array php
body: <p>if I give you:</p>
  
  <pre><code>$array = array(object1, object2, object3, object4);
  </code></pre>
  
  <p>and say, at position 2, remove all elements before this position so the end result is:</p>
  
  <pre><code>$array = array(object3, object4);
  </code></pre>
  
  <p>What would I do? I was looking at <a href="http://php.net/manual/en/function.array-shift.php" rel="nofollow"><code>array_shift</code></a> and <a href="http://php.net/manual/en/function.array-splice.php" rel="nofollow"><code>array_splice</code></a> to achieve what I wanted - how ever I am not sure which to use or how to use them to achieve the desired affect.</p>