Level 9.4 PHP Taskbook
A folder containing images is given. Upon visiting the page, display a random image from this folder.
Make a page that any user can visit and leave a comment. The user should see all previously left comments by other users.
A certain URL is given:
$url = 'http://test.com/dir1/dir2/dir3/page.html';
Get a sequential set of folders from it:
[
'/dir1/dir2/dir3/',
'/dir2/dir3/',
'/dir3/'
]
An arbitrary two-dimensional array is given:
[
[11, 12, 13, 14, 15],
[21, 22, 23, 24, 25],
[31, 32, 33, 34, 35],
[41, 42, 43, 44, 45],
[51, 52, 53, 54, 55],
]
Get an array of elements of its secondary diagonal:
[
15, 24, 33, 42, 51
]