for ($i = 0; $i < 5; $i++) { echo $i . "\n"; } This PHP script will output numbers 0 through 4. For context, here's how a for loop looks in C99: 4ukey Linux Fixed [FAST]
#include <stdio.h> Buffy The Vampire Slayer | Torrent Download Better
for i in {1..5}; do echo $i done This will print numbers 1 through 5. In PHP, a for loop is used similarly to other C-style languages: