title: PHP asterisk triangle alignment
body: <p>I'm new to web programming and recently started getting into PHP. I wrote a little code to produce a "right angle triangle". I recognize that using &amp;nbsp is part of the solution but I've placed it in every possible place with no luck so any advice would be appreciated..Below you will find the coding/current output/desired output:</p>
  
  <pre><code>$x = 10;
  while ( $x &gt;= 1 ) {
      $y=1;
      while ($y &lt;= $x) {
          echo "*";
          ++$y;
      }
      echo "&lt;br/&gt;";
      --$x;
  }
  
  output:
  **********
  *********
  ********
  *******
  ******
  *****
  ****
  ***
  **
  *
  
  
  desire output:
  **********
   *********
    ********
     *******
      ******
       *****
        ****
         ***
          **
           *
  </code></pre>