title: How to reduce number of "echo" in PHP?
body: <p>I am having problem in reducing number of "echo" in following code:</p>
  
  <p>Please provide a solution.</p>
  
  <pre><code> echo "&lt;br&gt;"."&lt;br&gt;". "&lt;table class='table table-striped'&gt;";
      foreach ($result as $values) {
          echo "&lt;tr&gt;";
          foreach ($values as $data) {
  
              echo "&lt;td&gt;". $data. "&lt;/td&gt;";
  
          }
          echo "&lt;/tr&gt;";
      }
      echo "&lt;/table&gt;";
  </code></pre>