I need to make a 3-level Christmas first step with a cycle, starting from an input where you are asked to enter a number from 1 to 3. (Without the spaces)
So far I have been able to print it but in this way:
This is the current code:
<?php
echo "<center>";
for ($i=1; $i<=3; $i++){
for ($k=1; $k<=3; $k++)
{
for ($j=1; $j<=$k; $j++)
{
echo "*";
}
echo "<br>";
}
}
echo "***<br>";
echo "***";
echo "<center/>";
?>