What is wrong with this php line?
<pre><code>var $foo = array('foo' =&gt; $bar);
</code></pre>

<p>I am getting an UNEXPECTED T_VARIABLE error. I can't use variables when creating arrays?</p>

<p>This declaration is inside a class, and I am running PHP v5.3.2</p>

<p>When removing the var, I get another error <code>Parse error: syntax error, unexpected T_VARIABLE, expecting T_FUNCTION</code></p>

<p>Thanks</p>
