Erreur de syntaxe avec Implode
Bonjour,
Voila mon code
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
|
<?php
include("../php/connect.php");
if(isset($_POST['ListeDestination']) && !empty($_POST['ListeDestination'])) {
$array = $_POST['ListeDestination'];
// ***DEBUG***
// echo '<pre>';
// print_r($array);
// echo '</pre>';
}
foreach ($array as $zoner) {
$chaine_tableau = implode ("," , $zoner); // On transforme le tableau en chaine
echo $chaine_tableau;
}
?> |
*** c'est l'exemple de la doc PHP ... ***
et voila le retour :
Warning: implode() [function.implode]: Bad arguments. in C:\xampp\htdocs\monfichier.php on line 14. La ligne 14, c'est la ligne $chaine_tableau = implode ...
Merci de m'éclairer