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