title: Pyramid of asterisks in php
body: <p>I am having problem creating a pyramid of asterisk.
  Please see my code.</p>
  
  <pre><code>  &lt;?php
  
      for($i=1;$i&lt;=5;$i++){
          for($j=1;$j&lt;=$i;$j++){
                      echo "*";
          }
          echo "&lt;br /&gt;";
      }
  
      ?&gt;
  </code></pre>
  
  <p>Result:</p>
  
  <pre><code>*
  **
  ***
  ****
  *****
  </code></pre>
  
  <p>My question is how I am going to make that like.</p>
  
  <pre><code>    *
     * *
    * * *
   * * * * 
  * * * * *
  </code></pre>