Articles saved under html tag
Coding PHP Loops Easily
Working with loops on PHP is inevitable, and I’ve seen many beginners (read: me) pulling their hair because of it. The thing with coding a loop is, sometimes you have to do stuffs like this:
<?php for ($i=1; $i < 10; $i++) { echo "<a href=\"something.php?id=$i\">No $i</a>"; }
Am I right am I right?