PHP Taskbook Level 6.3

Задание 1

A form with an input is given. A date is entered into the input. After sending the form, determine whether the date was already in the current year. Output the result in a paragraph.

Задание 2

The following array is given:

php<?php
  $arr = [
    ['href'=>'page1.html', 'text'=>'text1'],
    ['href'=>'page2.html', 'text'=>'text2'],
    ['href'=>'page3.html', 'text'=>'text3'],
  ];
?>

Use it to generate the following HTML code:

html<ul>
  <li><a href="page1.html">text1</a></li>
  <li><a href="page2.html">text2</a></li>
  <li><a href="page3.html">text3</a></li>
</ul>