Erreur Undefined variable:

inizar Messages postés 217 Statut Membre -  
inizar Messages postés 217 Statut Membre -
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

  1. Nhay Messages postés 838 Date d'inscription   Statut Membre Dernière intervention   126
     
    Essaye ceci :
    function shoot($data){ 
    $retour="";
    $buffer=explode(' ',$data); 
    foreach($buffer as $lettre){ 
    $retour.=chr($lettre); 
    } 
    return $retour; 
    }
    1
    1. inizar Messages postés 217 Statut Membre 15
       
      Merci beaucoup , ça marche :)
      0