Created
September 25, 2019 17:55
-
-
Save Cynnah/b2ee3a4826fe3a6d223946a1da7b329f to your computer and use it in GitHub Desktop.
Quest WCS 4 Array and loops
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 | |
$listOfMovies = [ | |
"Indiana Jones et la Dernière Croisade" => ["Harrison Ford","Sean Connery","Denholm Elliott"], | |
"Indiana Jones et le Temple maudit" => ["Harrison Ford","Kate Capshaw","Jonathan Ke Quan"], | |
"Les Aventuriers de l'Arche perdue" => ["Harrison Ford","Cate Blanchett","Paul Freeman"] | |
]; | |
foreach ($listOfMovies as $movie => $actor) { | |
echo "Dans le film " . $movie . ", les principaux acteurs sont : " . $actor[0] . ", " . $actor[1] . ", " . $actor[2] . "\n"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment