Contoh script perulangan for pada php

Script 1:
<?php
$ok1 = 6;
For ($i=1; $i<31; $i++){
echo "<b style='background:green;color:yellow;'>$i</b>. <span style='background:#000;color:#fff;'>selamat malam bro</span><br>";
}
?>

Script2:
<?php
for ($i=1; $i<11; $i++){
echo "$i. Riky setiomulyo<br>";
}
?>

Script 3:
<?php
for ($a=1; $a<11; $a++) {
echo "nomor absen : $a <br>";
}
?>
Script 4:
<?php
for ($a=1; $a<11; $a++){
echo " nomor absen: $a";
echo "dika<br>";
}
?>



Doc. Jumat 15/05/2020





Posting Komentar

Cookie Consent
We serve cookies on this site to analyze traffic, remember your preferences, and optimize your experience.
Oops!
It seems there is something wrong with your internet connection. Please connect to the internet and start browsing again.