PHP Taskbook Level 3.5
Задание 1
Given a text with words. Write into an array all words that begin with the letter 'a'.
Задание 2
Given an array of numbers, leave in it only those numbers that are divisible by 5.
Задание 3
Given an array of numbers, leave in it only those numbers that contain the digit zero.
Задание 4
Given an array of numbers, check that it contains a number that contains the digit 3.
Задание 5
Given a number:
php35142
Sort the digits of this number. In our case, we should get the following:
php12345
Задание 6
Write a program that will generate the following string:
php'-1-2-3-4-5-'