21 of 100 menu

PHP Taskbook Level 3.1

You are given a number. Check that the digits of this number are arranged in ascending order.

Given an array:

[1, '', 2, 3, '', 5]

Remove all empty strings from the array.

Given an array:

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

Sort the elements in each subarray.

Two arrays are given:

$arr1 = [1, 2, 3]; $arr2 = [1, 2, 3, 4, 5];

Remove extra elements from the end of the larger array so that the lengths of the arrays become the same.

uzswbysvpt