<title> Listarea unui masiv utiliz&#226;nd foreach  in tabel HTML</title>
<?php
$tabel
[0]=array(0=>"ANUL","FB","MN","CIG");

$tabel[]=array("I","75","80","60");

$tabel[]=array("II","100","100","96");

$tabel[]=array("III","100","100","-");


echo 
"<table border =2>";


foreach(
$tabel as $line){
    echo
"<br><tr>";
        foreach(
$line as $element)
            echo 
"<td>".$element."</td>";
        echo 
"</tr>";

}
echo 
"</table>";
?>
1
vezi rezultatul