<?php
for($i=1970;$i<=2010;$i++){
if($i% 1==0){
echo"$i<br>";
}
}
?>
Menampilkan Bulan dengan menggunakan ARRAY
<?$bulan=array("","january","february",
"Maret","April","Mei","Juni","Juli",
"Agustus","September","Oktober",
"November","Desember");
echo"<form>
<select name=bulan>";
for($k=1;$k<=12;$k++){
echo"<option value=$bulan[$k]>$bulan[$k]
</option>";
}
echo"</select>";
?>
Tidak ada komentar:
Posting Komentar