<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-us">
  <head>
    <title></title>
    <link rel="stylesheet" type="text/css" href="main.css" />
    <meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
    <meta http-equiv="content-script-type" content="text/javascript"/>
    <!--
        <script src="main.js" type="text/javascript"></script>
    -->
  </head>
  <body>

<?php

// an arry to set left and right
$l_r=array('left','right');


// some price data
$price['Grosswald Export']=1.45;
$price['Bruch Festbock']=1.74; 
$product_number=count($price);
print "<table><caption>We have $product_number products for you today.</caption>\n";
// prints: We have 2 products for you today.

$count=0; // counter of elements printed
foreach ($price as $item => $euro_amount) {
  print "<tr><td align=\"".$l_r[$count % 2]."\">";
  print $item;
  $count++;
  print "</td>\n<td align=\"".$l_r[$count % 2]."\">&euro;$euro_amount</td></tr>\n";
  $count++;
}
print "</table>\n";

// This produces something like
// <table caption="price list">
// <tr><td align="left">Grosswald Export</td>
// <td align="right">&euro;1.45</td></tr>
// <tr><td align="left">Bruch Festbock</td>
// <td align="right"'>&euro;1.74</td></tr>
// </table> 

?>


<p id="validator">
  <a href="http://validator.w3.org/check?uri=referer">
  <img style="border-width: 0pt" alt="Valid XHTML 1.0!" height="31"
  width="88" src="http://dlib.info/valid-xhtml10.png"/>
  </a>
  </p>
  </body>
  </html>

Valid XHTML 1.0!