Skip to content

Instantly share code, notes, and snippets.

@sele-nap
Created March 24, 2022 21:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sele-nap/b8bab3bb345b0f5a8ec84e1ca403e999 to your computer and use it in GitHub Desktop.
Save sele-nap/b8bab3bb345b0f5a8ec84e1ca403e999 to your computer and use it in GitHub Desktop.
WCS quest // 4.1. Les tableaux et boucles en PHP
<?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