Here is example of code
<!DOCTYPE HTML><html xmlns="http://www.w3.org/1999/xhtml"><head><title>test</title><meta charset="utf-8" /><style>.aligncenter{text-align:center;}</style></head><body>
<?
$bets = array(
array('rub','10','20','30','50','70'),
array('usd','0.20','0.40','0.50','0.80','1.25'),
array('eur','0.15','0.30','0.40','0.65','1.00'),
array('nis','0.75','1.50','2.00','3.00','5.00')
);
$cur = $_GET['cur'];
if(isset($cur)){
if($cur == $bets[0][0]){$curnum = 0;$curname = 'Rubl';}elseif($cur == $bets[1][0]){$curnum = 1;$curname = 'Dollar';}elseif($cur == $bets[2][0]){$curnum = 2;$curname = 'Euro';}elseif($cur == $bets[3][0]){$curnum = 3;$curname = 'Shekel';}
echo "<table><thead><tr><th></th><th></th><th colspan=\"5\">".$curname."</th></tr></thead><tbody><tr><th></th><th></th>";
for($i = 1; $i <= 5; $i++){
echo "<th>".$bets[$curnum][$i]."</th>";
}
echo "<tr><td rowspan=\"8\" class=\"aligncenter\">M<br />A<br />T<br />C<br />H</td>";
echo "<th>0</th>";
for($i = 1; $i <= 5; $i++){
echo "<td class=\"aligncenter\">".number_format($bets[$curnum][$i]*1, 2)."</td>";
}
echo "</tr>";
echo "<th>1</th>";
for($i = 1; $i <= 5; $i++){
echo "<td class=\"aligncenter\">".number_format($bets[$curnum][$i]*0, 2)."</td>";
}
echo "</tr>";
echo "<th>2</th>";
for($i = 1; $i <= 5; $i++){
echo "<td class=\"aligncenter\">".number_format($bets[$curnum][$i]*0, 2)."</td>";
}
echo "</tr>";
echo "<th>3</th>";
for($i = 1; $i <= 5; $i++){
echo "<td class=\"aligncenter\">".number_format($bets[$curnum][$i]*2, 2)."</td>";
}
echo "</tr>";
echo "<th>4</th>";
for($i = 1; $i <= 5; $i++){
echo "<td class=\"aligncenter\">".number_format($bets[$curnum][$i]*5, 2)."</td>";
}
echo "</tr>";
echo "<th>5</th>";
for($i = 1; $i <= 5; $i++){
echo "<td class=\"aligncenter\">".number_format($bets[$curnum][$i]*7, 2)."</td>";
}
echo "</tr>";
echo "<th>6</th>";
for($i = 1; $i <= 5; $i++){
echo "<td class=\"aligncenter\">".number_format($bets[$curnum][$i]*40, 2)."</td>";
}
echo "</tr>";
echo "<th>7</th>";
for($i = 1; $i <= 5; $i++){
echo "<td class=\"aligncenter\">".number_format($bets[$curnum][$i]*500, 2)."</td>";
}
echo "</tr>";
echo"</tbody></table>";
}
?>
</body></html>
maybe with one ir two for($i = 1; $i <= 5; $i++) or else way to get results like in example. Thanks for help