Program mengisi dan menampilkan variabel di layar
1 | <?php |
2 | $npm= "1111282"; |
3 | $nama = 'zay'; |
4 |
5 | echo "NPM : " . $npm. "<br>"; |
6 | echo "Nama : $nama"; |
7 | ?> |
sekedar untuk belajar
Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.This theme is Bloggerized by Lasantha Bandara - Premiumbloggertemplates.com.
Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.This theme is Bloggerized by Lasantha Bandara - Premiumbloggertemplates.com.
Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.This theme is Bloggerized by Lasantha Bandara - Premiumbloggertemplates.com.
Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.This theme is Bloggerized by Lasantha Bandara - Premiumbloggertemplates.com.
Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.This theme is Bloggerized by Lasantha Bandara - Premiumbloggertemplates.com.
1 | <?php |
2 | $npm= "1111282"; |
3 | $nama = 'zay'; |
4 |
5 | echo "NPM : " . $npm. "<br>"; |
6 | echo "Nama : $nama"; |
7 | ?> |
01 | <?php |
02 | $nim = "0411500400"; |
03 | $nama = 'Chotimatul Musyarofah'; |
04 | $umur = 23; |
05 | $nilai = 82.25; |
06 | $status = TRUE; |
07 |
08 | echo "NIM : " . $nim . "<br>"; |
09 | echo "Nama : $nama<br>"; |
10 | print "Umur : " . $umur; print "<br>"; |
11 | printf ("Nilai : %.3f<br>", $nilai); |
12 | if ($status) |
13 | echo "Status : Aktif"; |
14 | else |
15 | echo "Status : Tidak Aktif"; |
16 | ?> |