title: PHP for to while
body: <p>hi guys im having a problem with php</p>
  
  <p>i want to change a for statement to while</p>
  
  <p>here is the code:</p>
  
  <pre><code>&lt;?php
  $i=1;
  $uitkomst = 0;
  $getal = 5;
  echo "Het getal is $getal&lt;br&gt;&lt;br&gt;";
  echo "Het totaal van $i tot en met $getal is &lt;br&gt;";
  echo "0";
  for ($i = 1;$i &lt;= $getal;$i++){
  $uitkomst = $uitkomst + $i ;
  echo "+ $i";
  }
  echo "= $uitkomst"
  ?&gt;
  </code></pre>
  
  <p>what do i need to change ?</p>
  
  <p><em><strong>EDIT: i fixed it by looking at your examples.</em></strong></p>
  
  <p><em><strong>i need it for an assignment.</em></strong></p>
  
  <p><em><strong>Thanks and</em></strong></p>
  
  <p><em><strong>Greetings,</em></strong></p>
  
  <p><em><strong>Darren Brown</em></strong></p>