Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
<? 
$nom = 'c';
$c = '1';
setcookie($nom, $c, time()+3600);
 
if (isset($_COOKIE['c'])) 
{
   foreach ($_COOKIE['c'] as $name => $value) 
   {
       echo "$name : $value <br />\n";
   }
}
?>
Pourkoi j'ai cette erreur? Warning: Invalid argument supplied for foreach() in /mnt/www/lebest.fr/www/rss2/index.php on line 9

j'ai PhP 4 je comprend pas