Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Créer la filmographie d'Indiana II
<?php
$films = [
'Indiana Jones et la temple maudit' => ['Harrison Ford','Karen Allen','Pail Freeman'],
"Les aventuriers de l'arche perdue" => ['Harrison Ford','Kate Capshaw','Ke Huy Quan'],
'Indiana Jones et la dernière croisade' => ['Harrison Ford','Sean Connery','Alison Doody']
];
// var_dump($films);
foreach($films as $movie_title => $name_of_the_actor){
var_dump('Titre de film'.' - '.$movie_title);
foreach($name_of_the_actor as $name_of_the_actor) {
var_dump('les actros sont'.' - '.$name_of_the_actor);
}
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.