PHP Taskbook Level 2.9

Задание 1

Given a number:

php123456

Find the sum of the pairs of digits of this number. In our case, we mean the following:

php12 + 34 + 56
Задание 2

Given an array of numbers:

php[1, 2, 3, 4, 5]

Print the elements of this array to the console in reverse order.