Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Boucles romaines

By Stephen Rees-Carter

<?php

for($i = 0; $i < 10; ++$i) {
    for($ii = 0; $ii < 10; ++$ii) {
        for($iii = 0; $iii < 10; ++$iii) {
            for($iv = 0; $iv < 10; ++$iv) {
                for($v = 0; $v < 10; ++$v) {
                }
            }
        }
    }
}

Si la variable classique d’une boucle for() est $i, alors les boucles imbriquées devraient utiliser $ii, puis $iii, $iv, $v.

See Also

PHP Features

Last updated: 11 October 2026