Sətri doldurmaq PHP-də

str_repeat
Задание 1

Bir dövr və str_repeat funksiyası ilə ekranda aşağıdakı piramidani çap edin:

x
xx
xxx
xxxx
xxxxx
xxxxxx
xxxxxxx
xxxxxxxx
xxxxxxxxx
Задание 2

Bir dövr və str_repeat funksiyası ilə ekranda aşağıdakı piramidani çap edin:

1
22
333
4444
55555
666666
7777777
88888888
999999999