materi 6 php lanjutan2
TRANSCRIPT
-
8/18/2019 Materi 6 PHP Lanjutan2
1/13
PHP Lanjutan
-
8/18/2019 Materi 6 PHP Lanjutan2
2/13
For
syntax :
for (expr1; expr2; expr3)
statement;
contoh:
-
8/18/2019 Materi 6 PHP Lanjutan2
3/13
/* example 2 */
for ($i = 1; ; $i++) { if ($i ! 10) { "rea#;
echo $i;
/* example 3 */
$i = 1;
for (; ; ) { if ($i ! 10) { "rea#; echo $i; $i++;
-
8/18/2019 Materi 6 PHP Lanjutan2
4/13
Contoh mencetak 1 – 10 di for
Contoh 1:
for ($i = 1; $i
-
8/18/2019 Materi 6 PHP Lanjutan2
5/13
Contoh 3
-
8/18/2019 Materi 6 PHP Lanjutan2
6/13
Contoh For
Contoh *
-
8/18/2019 Materi 6 PHP Lanjutan2
7/13
Contoh for
Contoh
-
8/18/2019 Materi 6 PHP Lanjutan2
8/13
looping
-
8/18/2019 Materi 6 PHP Lanjutan2
9/13
looping
-
8/18/2019 Materi 6 PHP Lanjutan2
10/13
looping
-
8/18/2019 Materi 6 PHP Lanjutan2
11/13
loopig
-
8/18/2019 Materi 6 PHP Lanjutan2
12/13
looping
-
8/18/2019 Materi 6 PHP Lanjutan2
13/13
Tugas