title: PHP do-loop method
body: <p>Can't seem to figure out where it's not working. In the center I need a line wiht only ++++++. But I can't seem to find it to work. I've got it to work with a while-loop and a for loop but not the do while loop.</p>
  
  <p>It's gotta look like this </p>
  
  <pre><code>          -------+
            ------++
            -----+++
            ----++++
            ---+++++
            --++++++
            -+++++++
            ++++++++
            -+++++++
  </code></pre>
  
  <p>etc. But the middle line is not a a full line of + characters.</p>
  
  <pre><code>     &lt;?php
          echo"&lt;p&gt;Do While loop&lt;/p&gt;";
          $x1=8;
          $x2=1;
          do {
             $x3=1;
             do {
                echo"--";
                $x3++;
             }while($x3&lt;$x1);
             $x4=1;
             do {
                echo"+";
                $x4++;
             }while($x4&lt;=$x2);
             echo"&lt;br&gt;";
             $x1--;
             $x2++;
         }while($x1&gt;=0 and $x2&lt;=8);
  
         $y1=1;
         $y2=7;
         do {
            $y3=1;
            do {
               echo"--";
               $y3++;
            }while($y3&lt;=$y1);
         $y4=1;
         do {
            echo"+";
            $y4++;
         }while($y4&lt;=$y2);
         echo"&lt;br&gt;";
         $y1++;
         $y2--;
         }while($y1&lt;=7 and $y2&gt;=1);
  
     ?&gt;
  </code></pre>