title: Wraping foreach loop into div doesnt work
body: <pre><code>function news($newsarray) {
      $str='';
  
          '&lt;div&gt;foreach($newsarray as $value) 
          {
              $str.="&lt;h3&gt;{$value['title']}&lt;/h3&gt;";
              $str.="&lt;h4&gt;{$value['content']}&lt;/h4&gt;";
          }&lt;/div&gt;'
  
      return $str;
      }
      echo news($newsarray);
  </code></pre>
  
  <p>I want to wrap it up the foreach loop into div, but it doesn't work, I know it is something with the escaping but I'm new in programming and I have hard times with the documentation. I've asked a similar question earlier, but I'm really confused, sorry for asking again.</p>
  
  <p>on the localhost it says </p>
  
  <blockquote>
    <p>Parse error: syntax error, unexpected <code>title</code> (T_STRING) in C:\xampp\htdocs\news\news.php on line 17</p>
  </blockquote>