How to Create Right Angle in PHP

In this quick tutorial I will let you know how to create right angel in PHP. This is very basic question asking on PHP beginner interview. These type question use to judge your logical ability in code.

Right angle can be generate using ‘*’, number and other symbol but logic would be same.We will use two for loop, first one iterate on one give number and second one iterate on first one iterate value.

we are adding spces on each number print, like if we want print 10 number right angle then we will first print 1 number using second loop and then add 9 spaces on that row using first loop.


Below is sample code to generate right Angel:

I am creating