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