Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 13 additions & 3 deletions index.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@

<?php include("includes/header.php"); ?>
<!-- Exo 2 -->
<p>
Nous sommes le : <br />
Il est :
Nous sommes le : <?php setlocale(LC_TIME, 'FR','fr_FR.UTF8', 'fr.UTF8', 'fr_FR.UTF-8', 'fr.UTF-8');
echo strftime('%d %B %Y', time()); ?> <br />
Il est : <?php echo date('H:i:s'); ?>
</p>

<!-- Exo 3 -->
Expand All @@ -14,4 +15,13 @@
3 => array('prenom' => 'Marta', 'nom' => 'Blanca', 'telephone' => '003311111'),
4 => array('prenom' => 'John', 'nom' => 'Doe', 'telephone' => '004411111')
);
foreach ($personnes as $numero) {
foreach ($numero as $qqun => $value){

}
if (in_array('Dain', $numero)){
echo "J'ai trouvé Mme Dain ";
}
}
include("includes/footer.php");
?>