Operator pengulangan for
Operator pengulangan/looping for hampir sama dengan while cuman beda expr / kondisi syaratnya yang disatukan.
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
<?php
for ($i=1; $i <= 31; $i++) {
echo "Tanggal : $i <br>";}
?>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
<?php
for ($i=1; $i <= 31; $i++) {
echo "Tanggal : $i <br>";}
?>
</body>
</html>
Komentar
Posting Komentar