Created
September 13, 2018 14:01
-
-
Save Florencelg/6f1889e76bd9f722e92e5c26bd5eea24 to your computer and use it in GitHub Desktop.
Les tableaux et boucles 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 = [ | |
'Indiana Jones and the Kingdom of the Crystal Skull' => ['Harrison Ford','Cate Banchett','Karen Allen'], | |
'Indiana Jones and the Last Crusade' => ['Harrison Ford','Sean Connery','Denholm Elliott'], | |
'Indiana Jones and the Temple of Doom' => ['Harrison Ford','Kate Capshaw','Jonathan Ke Quan'] | |
]; | |
foreach ($movies as $movie => $actor){ | |
echo "Dans le film: $movie, les acteurs sont : $actor[0], $actor[1], $actor[2]. <br/><br/>"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment