syntax error T_PAAMAYIM_NEKUDOTAYIM!
<p>buy.php:</p>

<pre><code>&lt;form action="cart.php" method="post"&gt;
&lt;?php foreach($product['varieties'] as $variety): ?&gt;
    &lt;input style="width:10px; margin-left:9px; " name="price[]" type="checkbox" value="&lt;?php echo $variety['price'] . '_' . $variety['size']; ?&gt;"  /&gt;';
&lt;?php end foreach; ?&gt;
&lt;/form&gt;
</code></pre>

<p>cart.php:</p>

<pre><code>list($aDoor, size)  = split('_', $_POST['price']); // line 207

if(empty($aDoor)) 
{
  echo("You didn't select any buildings.");
} 
else 
{
  echo "Sum of vlues = ".array_sum($aDoor);
}
</code></pre>

<p>In cart.php there is the following syntax error:</p>

<blockquote>
  <p>syntax error, unexpected ')',
  expecting T_PAAMAYIM_NEKUDOTAYIM in
  store/cart.php on line 207</p>
</blockquote>

<p>I am expecting in cart.php to receive the two index values size and price independetly so I can use it and CSS it where ever i want. I am expecting that with the function list() and split() the variables variety and $aDoor with the price value will able to separate this two variables to be use wherever I want in cart.php</p>

<p>Help.</p>
