title: for loop echo inside another echo
body: <p>I have a foreach to run</p>
  
  <pre><code>for($i = 0; $i &lt; 7; $i++){
      echo "&lt;div class='$_Vr'"&gt;" ,$i,"&lt;/div&gt;" &lt;p&gt; &lt;/p&gt;;
  }
  </code></pre>
  
  <p>and have a test value</p>
  
  <pre><code>if ($_Vr == 'dd'){
  echo 'yes';
  }else{
  echo 'no';
  }
  </code></pre>
  
  <p>I understand I can do this way to get what I want</p>
  
  <pre><code>&lt;?php 
  for($i = 0; $i &lt; 7; $i++){
      echo "&lt;div class='$_Vr'"&gt;" ,$i,"&lt;/div&gt;&lt;p&gt;"?&gt; 
  
  if ($_Vr == 'dd'){
  echo 'yes';
  }else{
  echo 'no';
  }
  
  &lt;?php &lt;/p&gt;";  }?&gt;
  </code></pre>
  
  <p>but I'd like to know if I can put another echo inside foreach ? like </p>
  
  <pre><code>for($i = 0; $i &lt; 7; $i++){
      echo "&lt;div class='$_Vr'"&gt;" ,$i,"&lt;/div&gt;" &lt;p&gt; " , test value here , "&lt;/p&gt;;
  }
  </code></pre>