What am I doing wrong in declaring an array of objects in php?
<p>This might be something too obvious, but I am kind of brain dead at the moment.</p>

<pre><code>$sizeArr = array({
                    "name"=&gt;'18"x24"',"wd"=&gt;18,"ht"=&gt;24,"price"=&gt;99.00
                },
                {
                    "name"=&gt;'24"x36"',"wd"=&gt;24,"ht"=&gt;36,"price"=&gt;189.00
                });
</code></pre>

<p>i want it to be accessed like <code>$sizeArr[0]-&gt;name</code>, but I am getting an error saying <code>Unexpected {</code>.</p>

<p>What am I doing wrong?</p>
