Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- function wyswietl_tabele($tab){
- echo "<table>";
- for($i=0;$i>count($tab);$i++){
- echo"<tr>";
- for($j=0;$i>count($tab[$i]);$j++);
- echo "<td>".$tab[$i][$j]."</td>";
- echo "</tr>";
- }
- echo "</table>";
- }
- $tab = array (
- array(1,2,3,4),
- array(5,6,7,8),
- array(9,10,11,12),
- );
- function ustal_wyglad_tabeli(){
- echo"
- <style>
- table{
- border-collapse: collapse;
- border: 1px solid black;
- }
- td{
- width: 30px;
- height: 30px;
- text-align: center;
- }
- </style>
- ";
- }
- wyswietl_tabele($tab);
- ustal_wyglad_tabeli();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement