title: Splice function php
body: <p>I can't understand how the splice function is working.
  If I have these two arrays, I want to replace the array after an offset
  Let's say I want to replace after the '2'</p>
  
  <p><code>$t=array(1,2,3,4,5,6);
  $t2=array(0,0);</code></p>
  
  <p>What should I do to get <code>[1,2,0,0]</code>
  I tried this, but obviously not working <code>array_splice($t,2,0,$t2)</code></p>
  
  <p>Thanks.</p>