php array 0 to 100 code example Example: foreach range php <?php foreach (range(0, 12) as $number) { echo $number; } ?>