PHP: Inserting a reference into an array?
<p>I'm trying to insert into an array at a certain point:</p>

<pre><code>$hi = "test";
$var2 = "next";
$arr = array(&amp;$hi);
$arr[] = &amp;$var2; // this works
array_splice($arr, 1, 0, &amp;$var2); // this doesn't
</code></pre>

<p>Why does trying to insert it into the array with splice fail and using the first method doesn't?</p>
