title: Run the current index again in a foreach-loop
body: <p>Is it possible to run the current index again when a certain condition is met in a foreach-loop? Posting a example below.</p>
  
  <pre><code>$array = array('this', 'is', 'my', 'array');
  $bool = false;
  foreach($array as $value){
      echo $value.' ';
      if($value == 'my' &amp;&amp; !$bool){
          // Rerun the 'my' index again
          $bool = true;
      }
  }
  </code></pre>
  
  <p><strong>Desired output:</strong> this is my my array</p>