Tutorial PHP:
                                  Pengulangan dengan While 
| <html> <head> <title> Pengulangan dengan while </title> </head> <body> <center> <? $count = 1; while ($count <=10) { print ("Baris nomer $count<br>"); $count = $count + 1; } ?> </center> </body> </html>  |                                 
Jika script di atas dijalankan maka akan muncul tampilan seperti di bawah ini.
|                                      Baris                                        nomer 1 Baris nomer 2 Baris nomer 3 Baris nomer 4 Baris nomer 5 Baris nomer 6 Baris nomer 7 Baris nomer 8 Baris nomer 9 Baris nomer 10  |                                 
Download contoh



0 komentar:
Speak up your mind
Tell us what you're thinking... !