PHP Taskbook Level 8.2
Given some URL:
$url = 'http://test.com/dir1/dir2/dir3/page.html';
Get the page name from it:
'page.html';
Given an array, the subarrays of which contain numbers:
[
[1, 2, 3],
[4, 5, 6],
[7, 8, 9],
]
Merge the elements of this array into numbers:
[123, 456, 789]
Display the following pyramid on the screen:
xx
xxxx
xxxxxx
xxxxxxxx
xxxxxxxxxx
xxxx
xxxxxx
xxxxxxxx
xxxxxxxxxx