Passing a variable into a php array
<p>I'm trying to pass a variable into an array, looks like php does not like it. Is there any work around to pass a dynamic variable into a php array? I have a result set which is a multi-dimensional array, the variable I'm trying to pass into the second array is part of the result set.</p>

<p>a and b are column aliases. I need <code>$name</code> to be part of each row</p>

<pre><code>$name=array1[$i]['name'];
array('a','b',"$name")
</code></pre>

<p>Thanks for any suggestions!</p>
