Monthly Archives: March 2011

Counting to 1000 in PHP without loops or conditionals

Update: added a benchmark for performance comparison and updated the code to no longer rely on a fatal error to exit. It started with one question: Print numbers from 1 to 1000 without using any loop or conditional statements. Don’t

Tagged with: ,
Posted in Code