18 of 100 menu

PHP Taskbook Level 2.8

Given a string of letters, check that there are no more than two capital letters in this string.

Given a string:

'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:

'1 22 333 22 1'

Two arrays are given:

$arr1 = [1, 2, 3]; $arr2 = ['a', 'b', 'c'];

Merge these arrays into a new array as follows:

[1, 2, 'a', 'b', 'c', 3]
English
AfrikaansAzərbaycanБългарскиবাংলাБеларускаяČeštinaDanskDeutschΕλληνικάEspañolEestiSuomiFrançaisहिन्दीMagyarՀայերենIndonesiaItaliano日本語ქართულიҚазақ한국어КыргызчаLietuviųLatviešuМакедонскиMelayuမြန်မာNederlandsNorskPolskiPortuguêsRomânăРусскийසිංහලSlovenčinaSlovenščinaShqipСрпскиSrpskiSvenskaKiswahiliТоҷикӣไทยTürkmenTürkçeЎзбекOʻzbekTiếng Việt
We use cookies for website operation, analytics, and personalization. Data processing is carried out in accordance with the Privacy Policy.
accept all customize decline