Fonction retournant 2 valeurs
Posté : 06 mars 2006, 22:17
Bonjour,
Imaginons une fonction :
Imaginons une fonction :
function return() {
$b = 4;
$a = 3;
return $a, $b;
}
return();
echo "A = ".$a." B = ".$b;
Comment faire marcher ca ?