title: php printing numbers in a shape using less than 2 for loops
body: <pre><code>&lt;table&gt;
  &lt;tr
  &lt;td align="center"&gt;
  &lt;?PHP
  
  $b = 1;
  for ($a=1; $a&lt;=1; $a++)
  {
      echo $b++;
      echo "&lt;br&gt;";
  }
  
  $b = 2;
  for ($a=1; $a&lt;=2; $a++)
  {
      echo $b++;
  
  }
  
  echo "&lt;br&gt;";
  $b = 4;
  for ($a=1; $a&lt;=3; $a++)
  {
      echo $b++;
  
   }
  echo "&lt;br&gt;";
  $b = 7;
  for ($a=1; $a&lt;=5; $a++)
  {
      echo $b++;
  
  {
  echo "&lt;br&gt;";
  $b = 12;
  for ($a=1; $a&lt;=5; $a++)
  {
      echo $b++;
  
  }
  echo "&lt;br&gt;";
  $b = 17;
  for ($a=1; $a&lt;=4; $a++)
   {
       echo $b++;
  
  }
  echo "&lt;br&gt;";
  $b = 21;
  for ($a=1; $a&lt;=3; $a++)
  {
      echo $b++;
  
  }
  echo "&lt;br&gt;";
  $b = 24;
  for ($a=1; $a&lt;=2; $a++)
  {
      echo $b++;
  
  }
  echo "&lt;br&gt;";
  $b = 26;
  for ($a=1; $a&lt;=1; $a++)
  {
      echo $b++;
  
   }
  
   ?&gt;
   &lt;/td&gt;
   &lt;/tr&gt;
   &lt;/table&gt;
  </code></pre>
  
  <p>I am trying to use for loops to make a shape that looks something along the lines of this: </p>
  
  <p>I have managed to do it, but using way too many loops (9), I want to be a little less than this. Anyone have any help?</p>
  
  <p>P.S its meant to be a diamond shape with the numbers 1-26</p>
  
  <pre><code>   ![sort of like this][1]     
  </code></pre>