22 of 100 menu

PHP Taskbook Level 3.2

Print to the console all numbers in the range from 10 to 1000, whose second-to-last digit is even.

Given an array, remove every fifth element from it.

Given a variable with a number:

$num = 5;

Make a string containing as many zeros as specified in the variable. In our case, we get the following string:

'00000'

There is a certain line with the words:

'aaa bbb ccc eee fff'

Delete every second word from this line. In our case, we should get the following:

'aaa ccc fff'

Given an array:

[ [1, 2, 3], [4, 5, 6], [7, 8, 9], ]

Find the sum of the elements of this array.

trnlitfrhi