title: Restart an if else construct
body: <p>Let's take a look at the following code:</p>
  
  <pre><code>if ($a == 1) {
      echo "this is stage 1";
  } 
  else if ($a == 2) {
      echo "this is stage 2";
  }
  else if ($a == 3) {
      $a = 1;
      // at this point I want something that restarts the if-else construct so
      // that the output will be "this is stage 1"
  }
  </code></pre>
  
  <p>I'm working on an if else construct at the moment and let's say that I have three stages and the if-else construct checks which stage I'm in. </p>
  
  <p>Now it happens that some activities in stage 3 lead to a jump back to stage 1. Now I've already passed the code for stage one, which is why I want to somehow restart the if-else construct. Is there a way to do that? And even more important: Is there a better way to do what I want? Because my idea doesn't seem to be good practice.</p>