Penggunaan Array pada PHP
<?php$tabel=array("Januari","Februari","Maret","April","Mei","Juni","Juli","Agustus","September","Oktober","November","Desember");
echo "<table border=\"5\">";
echo "<th>Indek Array ke-</th><th>Value</th>";
for($i=0;$i<sizeof($tabel);$i++)
{
echo "<tr><td>".$i."</td><td>".$tabel[$i]."</td></tr>";
}
echo "</table>";
?>
OUTPUT
0 comments:
Post a Comment