Part 1
1

Tableaux exercices : Exercice PHP n°1

The goal of the exercise is to apply what you have learned using the examples.

Statement

Completer le programme suivant qui doit afficher le tableau  des jours de la semaine.

Enter your response
$tab =array('lundi','mardi','mercredi','jeudi','vendredi','samedi','dimanche'); $max=/* trou/ */ /* /trou */ for (/* trou/ */ /* /trou */) { echo ('<p>Jour'. $i .'='. $tab[$i].'</p>'); }
Result to obtain

Jour0=lundi

Jour1=mardi

Jour2=mercredi

Jour3=jeudi

Jour4=vendredi

Jour5=samedi

Jour6=dimanche

<p>Jour0=lundi</p><p>Jour1=mardi</p><p>Jour2=mercredi</p><p>Jour3=jeudi</p><p>Jour4=vendredi</p><p>Jour5=samedi</p><p>Jour6=dimanche</p>

Execution in 0.0005s

1 / 6
Tableaux exercices