title: How to print this pattern of stars in php?
body: <p>Input n
  Height=2*n+1;</p>
  
  <pre><code>if n=1
   *
  **
   *
  
  if n=2
          *
    *     *
  * * * * *
    *     *
          *
  
  if n=3
                  *
          *       *
    *     *       *
  * * * * * * * * *
    *     *       *
          *       *
                  *
  </code></pre>
  
  <p>and so on...</p>
  
  <p>thare is a gap of 'n' stars between the two vertical lines of stars.</p>