tdphp/td4/exo1_traitement.php

12 lines
248 B
PHP
Raw Normal View History

2023-03-22 08:13:04 +01:00
<?php
foreach ($_POST as $cle => $valeur) {
if (is_string($valeur)) {
$valeur = strtolower($valeur);
}
if (is_array($valeur)) {
$valeur = implode(", ", $valeur);
}
echo "<strong>$cle</strong> : $valeur <br>";
}