Created
March 6, 2018 10:00
-
-
Save b0ndurant/be4f5501c9cae640582f72d006f4edb7 to your computer and use it in GitHub Desktop.
quete tableau et boucle 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 | |
$indiana_jones = array | |
('Indiana Jones et le Royaume du Crâne de Cristal'=>'Harrison Ford, Cate Blanchett, Karen Allen', | |
'Indiana Jones et la Derniere Croisade'=> 'Harrison Ford, Sean Connery, Denholm Elliot', | |
'Indiana Jones et le Temple maudit'=> 'Harrison Ford, Kate Capshaw ,Jonathan Ke Quan'); | |
foreach ($indiana_jones as $key1 => $value1) { | |
echo "Dans le film ".$key1." les acteurs principaux sont ".$value1. "<br/>"; | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment