PHP Taskbook Level 2.6
Given a string of letters and numbers, get an array of positions of all the digits in that string.
Given an array with some numbers, for example, like this:
[123, 456, 789]
Write code that will reverse the numbers in this array as follows:
[321, 654, 987]
Given a string with a number:
'1234567'
Separate the triplets of numbers with spaces, starting from the end of the number. In our case, we should get the following:
'1 234 567'
Given a string:
'AbCdE'
Change the case of the letters in this line to the opposite. In our case, it should look like this:
'aBcDe'
Given some array of numbers, for example, like this:
[1, 2, 3, 4, 5, 6]
Merge pairs of elements together:
[12, 34, 56]
There is a certain line with the words:
'aaa bbb ccc eee fff'
Capitalize the first character of every other word in that line. In our case, it should look like this:
'aaa Bbb ccc Eee fff'