Program to print Pyramid pattern of Stars and Numbers in PHP

Notes:

PHP - Print pyramid of stars and numbers in PHP:
Displaying stars in pyramid shape using PHP nested loops:

for($i=1; $i<6; $i++)
{
for($k=1; $k<(6-$i); $k++)
{
echo " ";
}
for($j=0; $j<$i; $j++)
{
echo "*";
}
echo "<br/>";
}

Output:
*
* *
* * *
* * * *
* * * * *

Interview Questions:

1. PHP stands for ______________
a. Hypertext Preprocessor
b. Preprocessor Hypertext
c. Personal Home Processor
d. Personal Hypertext processor
Ans: a