PHP Taskbook Level 2.8
Задание 1
Given a string of letters, check that there are no more than two capital letters in this string.
Задание 2
Given a string:
php'1 22 333 4444 22 5555 1'
Remove from this string all substrings in which the number of characters is more than three. In our case, we should get the following:
php'1 22 333 22 1'
Задание 3
Two arrays are given:
php$arr1 = [1, 2, 3];
$arr2 = ['a', 'b', 'c'];
Merge these arrays into a new array as follows:
php[1, 2, 'a', 'b', 'c', 3]