Advertisement
Rofihimam

Untitled

Oct 1st, 2019
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.72 KB | None | 0 0
  1. <link href="https://fonts.googleapis.com/css?family=Bree+Serif&display=swap" rel="stylesheet">
  2. <style type="text/css">
  3.     table{
  4.         background: linear-gradient(to right, #0033cc 0%, #ff0066 100%);
  5.         border: 5px outset darkblue;
  6.     }
  7.     th, td{
  8.         font-family: 'Bree Serif', serif;
  9.         width: 100px;
  10.     }
  11. </style>
  12.  
  13. <?php
  14.     $siswa = array(array("1314114590", "Tony", "MIF1"), array("1314114592", "Thor", "MIF2"), array("1314114593", "Bruce", "MIF3"));
  15.  
  16.     echo '<table border = 1>
  17.             <tr>
  18.                 <th>NIS</th>
  19.                 <th>NAMA</th>
  20.                 <th>KELAS</th>
  21.             </tr>';
  22.             for ($i = 0; $i < 3; $i++) {
  23.                 echo '<tr>';
  24.                 for ($j = 0; $j < 3; $j++) {
  25.                     echo '<td>'.$siswa[$i][$j].'</td>';
  26.                 }
  27.                 echo '</tr>';
  28.             }
  29.     echo '</table>';
  30. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement