Erreur Undefined variable:

Bonjour,
une solution pour l'erreur ?
Notice: Undefined variable: retour in C:\wamp\www\test.php on line 89

function shoot($data){
$buffer=explode(' ',$data);
foreach($buffer as $lettre){
$retour.=chr($lettre);
}
return $retour;
}

Merci beaucoup



--
The Second place is the first loser

1 réponse

  • Votes
  • Date
  • Date décroissante
  1. Essaye ceci :
    function shoot($data){ 
    $retour="";
    $buffer=explode(' ',$data); 
    foreach($buffer as $lettre){ 
    $retour.=chr($lettre); 
    } 
    return $retour; 
    }
    1. Merci beaucoup , ça marche :)