PHP Taskbook Level 6.2

Задание 1

Given variables:

php<?php
  $rows = 4;
  $cols = 3;
?>

Upon entering the page, generate an HTML table, the number of rows and columns will be taken from the variables above.

Задание 2

Upon entering the page, generate an HTML table with a given number of rows and columns so that the cells contain their ordinal numbers.

Задание 3

Upon entering the page, generate an HTML table with a given number of rows and columns so that the cells contain the numbers of their rows and columns.

Задание 4

Given an array:

php[
  [1, 2, 3],
  [4, 5, 6],
  [7, 8, 9],
]

When you enter the page, create a table filled with data from this array.