title: Build triangle number pattern PHP
body: <p>I've encountered issue. I was able to build different patterns prev. However, I wasn't able to figure out how to produce script with nessessary output.</p>
  
  <pre><code>1 2 3 4 5 6 7 8
    1 2 3 4 5 6 7
      1 2 3 4 5 6
        1 2 3 4 5
          1 2 3 4
            1 2 3
              1 2
                1
  ?&gt;
      &lt;?php  
      for($a=8;$a&gt;=1;$a--){  
      for($b=1;$b&lt;=$a;$b++){  
      echo $b. ' ';  
      }  
      echo "&lt;br&gt;";  
      }
      ?&gt; 
  </code></pre>
  
  <p>Thanks in advance.</p>