title: How to encapsulate this variable into the string?
body: <p>I want to encapsulate this variable into the string, but I always get an error:</p>
  
  <pre><code>for($i = 0; $i &lt; $_POST['rows']; $i++) {
     echo "&lt;tr&gt;"
     for($j = 0; $j &lt; $_POST['columns'] $j++) {
        echo "&lt;td&gt;$_POST['row{$i}column{$j}']&lt;/td&gt;"; // &lt;&lt; I get an error. Please help me encapsulate this.. I'm so confused.
     }
  }
  </code></pre>
  
  <p>The error is:</p>
  
  <pre><code>Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING
  </code></pre>