title: PHP - Using a for loop instead of a switch statement
body: <p>Overflow community first post ever!</p>
  
  <p>Currently i'm working on a project and have started to use PHP to dynamic insert pages.</p>
  
  <p>At this point in time I have...</p>
  
  <pre><code>switch ($route) {
    case 'step1':
          include('./views/enrolment/mainstream/_step1.php');
          include('./views/partials/_footer.php') ;
          break;
      case 'step2':
          include('./views/enrolment/mainstream/_step2.php');
          include('./views/partials/_footer.php') ;
          break;
      case 'step3':
          include('./views/enrolment/mainstream/_step3.php');
          include('./views/partials/_footer.php');
          break;
      case 'step4':
          include('./views/enrolment/mainstream/_step4.php');
          include('./views/partials/_footer.php');
          break;
      case 'step5':
          include('./views/enrolment/mainstream/_step5.php');
          include('./views/partials/_footer.php');
          break;
      case 'step6':
          include('./views/enrolment/mainstream/_step6.php');
          include('./views/partials/_footer.php');
          break;
      case 'step7':
          include('./views/enrolment/mainstream/_step7.php');
          include('./views/partials/_footer.php');
          break;
  </code></pre>
  
  <p><br>
  This to means seems horrifically long and is better achieved through a for loop, however i'm a newbie to PHP and am entirely unsure of how I would go about implementing this idea.</p>
  
  <p>Any other sugguestions without a the use of a for loop is also welcome!<br>
  <br>
  Thanks guys!</p>