PHP Taskbook Level 1.2

Задание 1

Given a number, output the first digit of this number to the console.

Задание 2

Given a number, output the last digit of this number to the console.

Задание 3

Given a number, output to the console the sum of the first and last digits of this number.

Задание 4

Given a number. Output the number of digits in this number.

Задание 5

You are given two numbers. Check that the first digits of these numbers match.