The best way to print the numbers 1 to 100 in PHP without using a loop is with the following code:
echo implode("<br>", range(1,100));
You can replace the <br> with anything that you want to separate the numbers, such as dashes. I used a line-break in the example.
Copyright © 2026 eLLeNow.com All Rights Reserved.