title: How to do PHP loops correctly
body: <blockquote>
    <p>Write a class called math.  It is to have one property called num. It also has one method (function) called factorial.  This method is to start at 1 and multiply all of the integers to num.  If num is 5 then you would multiply 1*2*3*4*5.  Of course you are to do this in a loop.</p>
  </blockquote>
  
  <p>Which loop should I use? For or do while? Also, do I need an inner loop? 
  I started with </p>
  
  <pre><code>For (i = 1; i &lt;= 5; i++)
  {
  
  }
  </code></pre>
  
  <p>however, i'm stuck on what to do next...any suggestions?</p>