Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <title>Array Asosiatif (M. Hafidz Fadillah - XI RPL 2)</title>
- <style type="text/css">
- body {
- color: lightgreen;
- background-color: gray;
- font-family: consolas;
- font-size: 18px;
- }
- </style>
- </head>
- <body>
- <?php
- $siswa = array('1314115698' => 'Wanda', '1314115699' => 'Nakia', '1314115700' => 'Carol');
- foreach ($siswa as $nis => $nm_siswa) {
- echo $nm_siswa.' memiliki NIS '.$nis.'<br>';
- }
- ?>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement