for loop - basic control structure. This example loops until the variable hits 10 and then breaks out. <?php for ($i = 1; ; $i++) { if ($i > 10) { break; }…