Writing your first "for" loop (it doesn't work)


#1

This section doesn't work. can you check my codes please?

<html>
  <head>
    <title>Solo For Loop!</title>
  </head>
  <body>
    <p>
      <?php
      
      for ($i = 10; $i < 101; $i = $i + 10){
          echo $i;
      }
      ?>
    </p>
  </body>
</html>

#2

this is my code and it works fine.

for ($i = 10; $i < 110; $i = $i + 10) {
echo $i;
}

i looked at your code and I can not see any problem on it unless you can try comparing them and see what the problem is. make sure you check the lesson instructions because you have to print out whatever they want you to print even if your code compiles somewhere else will not compile here if your output is different with their required output