php for loop step 5 code example Example: php for next loop step for ($i = 0; $i < 10; ++$i) { echo "I will loop 10 times"; }