bonjour comment passer un tableau en parametre ds une fonction?
Warning: Variable passed to each() is not an array or object
or
function champSelect($pNom,$pListe,$pDefaut,$pTaille=1,$pCSS=-1) {
if ($pCSS != -1) $optionClass = "CLASS=\"$pCSS\"";
$s="<SELECT NAME=\"$pNom\" SIZE='$pTaille' $optionClass>\n";
echo "echoff".$pListe;
while (list($val,$libelle) = ****** each *****($pListe)) {
if ($val != $pDefaut)
*****$Albert**** = array ("a" => "valeura","b" => "valeurb" );
$form->champSelect("albert",*****$Albert****,"defaut",2);
thanks!