How to make pyramid programs in PHP?
<p>I am trying to make a pyramid program in <code>PHP</code> like this : </p>

<pre><code>    1
   21
  321
 4321
54321
</code></pre>

<p>I tried this :</p>

<pre><code>for($i=1;$i&lt;=5;$i++)
{
    for($j=1;$j&lt;=$i;$j++)
    {
        echo $j;
    }
    echo "&lt;br&gt;";
}
</code></pre>

<p>But it is creating a pyramid like this :</p>

<pre><code>1
12
123
1234
12345
</code></pre>

<p>I am trying this for the last 6 hours but couldn't make that.
Can anyone please help me in doing that.</p>

<p>Thanks in advance</p>
