Part 1
1

Tableaux exercices : Exercice PHP n°4

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

Statement

Créer un tableau  qui en fonction du jour de la semaine affiche le jour correspondant en francais et en anglais  .

Enter your response
$jour = array(/* trou/ */ /* /trou */); foreach (/* trou/ */ /* /trou */) { echo /* trou/ */ /* /trou */; foreach (/* trou/ */ /* /trou */) { echo /* trou/ */ /* /trou */; } echo '<br>'; }
Result to obtain

Le jour numero1

jour : lundi

day : monday


Le jour numero2

jour : mardi

day : tuesday


Le jour numero3

jour : mercredi

day : wednesday


Le jour numero4

jour : jeudi

day : thursday


Le jour numero5

jour : vendredi

day : friday


Le jour numero6

jour : samedi

day : saturday


Le jour numero7

jour : dimanche

day : sunday


<p>Le‧jour‧numero1</p><p>jour‧:‧lundi</p><p>day‧:‧monday</p><br><p>Le‧jour‧numero2</p><p>jour‧:‧mardi</p><p>day‧:‧tuesday</p><br><p>Le‧jour‧numero3</p><p>jour‧:‧mercredi</p><p>day‧:‧wednesday</p><br><p>Le‧jour‧numero4</p><p>jour‧:‧jeudi</p><p>day‧:‧thursday</p><br><p>Le‧jour‧numero5</p><p>jour‧:‧vendredi</p><p>day‧:‧friday</p><br><p>Le‧jour‧numero6</p><p>jour‧:‧samedi</p><p>day‧:‧saturday</p><br><p>Le‧jour‧numero7</p><p>jour‧:‧dimanche</p><p>day‧:‧sunday</p><br>

Execution in 0.0004s