PHP uzdevumu krājuma Līmenis 8.2
Задание 1
Dots kāds URL:
php$url = 'http://test.com/dir1/dir2/dir3/page.html';
Iegūstiet no tā lapas nosaukumu:
php'page.html';
Задание 2
Dots masīvs, kura apakšmasīvi satur ciparus:
php[
[1, 2, 3],
[4, 5, 6],
[7, 8, 9],
]
Apvienojiet šī masīva elementus ciparos:
php[123, 456, 789]
Задание 3
Izvadiet ekrānā šādu piramīdu:
xx
xxxx
xxxxxx
xxxxxxxx
xxxxxxxxxx
xxxx
xxxxxx
xxxxxxxx
xxxxxxxxxx