PHP Taskbook Level 3.2
Задание 1
Print to the console all numbers in the range from 10 to 1000, whose second-to-last digit is even.
Задание 2
Given an array, remove every fifth element from it.
Задание 3
Given a variable with a number:
php$num = 5;
Make a string containing as many zeros as specified in the variable. In our case, we get the following string:
php'00000'
Задание 4
There is a certain line with the words:
php'aaa bbb ccc eee fff'
Delete every second word from this line. In our case, we should get the following:
php'aaa ccc fff'
Задание 5
Given an array:
php[
[1, 2, 3],
[4, 5, 6],
[7, 8, 9],
]
Find the sum of the elements of this array.