Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $array = [
- ["A", "B", "E"],
- ["C", "D", "F"]
- ];
- // $nama_variabel[baris][kolom]
- echo $array[0][0];
- echo $array[0][1];
- echo $array[1][0];
- echo $array[0][2];
- echo $array[1][2];
- echo "<table>";
- echo "<tr>";
- echo "<td>" . $array[0][0] ."</td>";
- echo "<td>" . $array[0][1] ."</td>";
- echo "</tr>";
- echo "<tr>";
- echo "<td>" . $array[1][0] ."</td>";
- echo "<td>" . $array[1][1] ."</td>";
- echo "</tr>";
- echo "</table>";
- echo "
- <table>
- <tr>
- <td>" . $array[0][0] . "</td>
- <td>" . $array[0][1] . "</td>
- <td>" . $array[0][2] . "</td>
- </tr>
- <tr>
- <td>" . $array[1][0] . "</td>
- <td>" . $array[1][1] . "</td>
- <td>" . $array[1][2] . "</td>
- </tr>
- </table>
- ";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement