回声基于变量的选项卡数量

I am trying to create the bottom two triangles but I can't get the alignment to work properly.

http://imgur.com/a/IIQva

I can't figure out how to do the spacing properly. In Python you could do ('A' * 200) and it would print the A 200 times, however I can't figure out how to do that with the \t tab in PHP. Is it possible to do something like that so I can space out the number triangle based on tabs?

You could use the str_repeat function like so:

echo str_repeat('Z', 4); // ZZZZ