71 of 100 menu

PHP Taskbook Level 8.1

Given some URL:

$url = 'http://test.com/dir1/dir2/dir3/page.html';

Get the domain name from it:

'test.com';

Given an array:

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

Sort the array elements in ascending order of the number of elements in the subarray.

Given an array:

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

Sort the array elements in ascending order of the sum of the subarray elements.

Display the following pyramid on the screen:

x
xx
xxx
xxxx
xxxxx
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