Arithmetic in array assignments?
<p>I'm relatively new to php and need to do basic PEMDAS arithmetic within an associative array assignment, however am getting syntax errors and cannot seem to find them.</p>

<p>Here is some code. </p>

<pre><code>$worth=array(
        'one'=&gt;((1000/333)*$min[0]-&gt;getPrice(),
        'two'=&gt;((833/333)*$min[0]-&gt;getPrice()) + ((416/333)*$min[1]-&gt;getPrice()));
</code></pre>

<p>These are only two entries of 16.  Each of which have another ((number/number)*$arr[$i]->getPrice()) added to the end of the assignment.</p>

<p>Is this type of array assignment not allowed? </p>

<p>Suggestions on alternatives which may be cleaner?</p>

<p>All help is appreciated. </p>
