Created
March 24, 2022 21:51
-
-
Save sele-nap/b8bab3bb345b0f5a8ec84e1ca403e999 to your computer and use it in GitHub Desktop.
WCS quest // 4.1. 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 et les Aventuriers de l\'arche perdue'] = 1981 ; | |
$movies['Indiana jones et le Temple maudit'] = 1984; | |
$movies['Indiana Jones et la Dernière Croisade'] = 1989; | |
asort($movies); | |
foreach($movies as $movie => $year){ | |
echo "$year - $movie <br>"; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment