Skip to content

Instantly share code, notes, and snippets.

@sele-nap
Created March 24, 2022 21:53
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/75dbfe28196120d5e23eb3f38a0dcafa to your computer and use it in GitHub Desktop.
Save sele-nap/75dbfe28196120d5e23eb3f38a0dcafa to your computer and use it in GitHub Desktop.
WCS quest // 4.2. Les tableaux multidimensionnels en PHP
<?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