Php loop nesting

clipboard.png
Why do I report an error when I write like this? I don"t understand

the code is as follows

<table border=1>
    <?php for ($i = 1; $i < 10; $iPP) { ?>
    <tr>
        <?php for ($j = 1; $j < 10; $jPP) {?>
        <td></td>
        <?php} ?>
    </tr>
    <?php} ?>
</table>
Php
Mar.21,2021

The "}" after

"

<table border=1>
    <?php for ($i = 1; $i < 10; $iPP) { ?>
    <tr>
        <?php for ($j = 1; $j < 10; $jPP) {?>
        <td></td>
        <?php } ?>
    </tr>
    <?php } ?>
</table>

suggest getting rid of this problem. Mixing PHP and HTML has become a skill in Wanli years. Now the popular trend is to separate the front and rear ends, and HTML writes that it is in js.

Menu