tablice - PHP Online
Form of PHP Sandbox
Enter Your PHP code here for testing/debugging in the Online PHP Sandbox. As in the usual PHP files, you can also add HTML, but do not forget to add the tag <?php
in the places where the PHP script should be executed.
Result of php executing
Full code of tablice.php
- <?php
- for($i=0;$i<20;++$i){
- $dataczas[$i] = $i;
- for($j=0;$j<9;++$j){
- $tablica[$i][$j] = $i;
- }
- }
- $example_data = [];
- for($i=0;$i<20;++$i){
- $example_data = array_merge($example_data, array(
- array($dataczas[$i],$tablica[$i][1],$tablica[$i][2],$tablica[$i][3],$tablica[$i][4],$tablica[$i][5],$tablica[$i][6],$tablica[$i][7],$tablica[$i][8]),
- ));
- }
- echo json_encode($example_data);