如何将此变量封装到字符串中?

Kev*_*Lee 1 php

我想将此变量封装到字符串中,但我总是收到错误:

for($i = 0; $i < $_POST['rows']; $i++) {
   echo "<tr>"
   for($j = 0; $j < $_POST['columns'] $j++) {
      echo "<td>$_POST['row{$i}column{$j}']</td>"; // << I get an error. Please help me encapsulate this.. I'm so confused.
   }
}
Run Code Online (Sandbox Code Playgroud)

错误是:

Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING
Run Code Online (Sandbox Code Playgroud)

Ali*_*guy 5

for($i = 0; $i < $_POST['rows']; $i++) {
   echo '<tr>';
   for($j = 0; $j < $_POST['columns'] $j++) {
      echo '<td>' . $_POST['row' . $i . 'column' . $j] . '</td>';
   }
   echo '</tr>';
}
Run Code Online (Sandbox Code Playgroud)