Created
March 24, 2022 21:53
-
-
Save sele-nap/75dbfe28196120d5e23eb3f38a0dcafa to your computer and use it in GitHub Desktop.
WCS quest // 4.2. Les tableaux multidimensionnels en PHP
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$movies=[ | |
'Les aventuriers de l\'Arche perdue' => ['Harrison Ford', 'Karen Allen', 'John Rhys-Davies'], | |
'Le temple maudit' => ['Harrison Ford', 'Kate Capshaw', 'Jonathan Ke Quan'], | |
'La dernière Croisade' => ['Harrison Ford', 'Sean Connery', 'Alison Doody'] | |
]; | |
foreach($movies as $movie => $actors){ | |
echo "Dans le film $movie, les principaux acteurs sont:<br>"; | |
foreach($actors as $actor) | |
echo "$actor <br>"; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment