PHP Taskbook Level 5.2

Задание 1

When entering a page, output a random number from the range from 1 to 100 into the paragraph.

Задание 2

Given a form with a button. After submitting the form, find the sum of numbers from 1 to 100 and display the result on the screen.

Задание 3

A form with a button and an input is given. A string is entered into the input. By pressing the button, determine how many characters are in the entered string.

Задание 4

The following data structure is given:

php<?php
  $data = [1, 2, 3, 4, 5];
?>

Using this data, create the following layout:

html<ul>
  <li>1</li>
  <li>2</li>
  <li>3</li>
  <li>4</li>
  <li>5</li>
</ul>