
Forum » » Le coin des codeurs » » [Résolu] - Utilisation de variables communes à deux fonctions
Posté : 02-06-2005 20:31 
function xmlCoordonnees($myXML, $batiment, $rue, $cp, $ville, $telfixe, $telport, $fax, $adressemail, $adressewww) {
//on remplit la variable du document XML
$myXML .= "<batiment>".$batiment."</batiment>";
$myXML .= "<rue>".$rue."</rue>";
$myXML .= "<cp>".$cp."</cp>";
$myXML .= "<ville>".$ville."</ville>";
$myXML .= "<tel_fixe>".$telfixe."</tel_fixe>";
$myXML .= "<tel_portable>".$telport."</tel_portable>";
$myXML .= "<fax>".$fax."</fax>";
$myXML .= "<mail>".$adressemail."</mail>";
$myXML .= "<www>".$adressewww."</www>";
}
$myXML=xmlCoordonnees($myXML, $batiment, $rue, $cp, $ville, $telfixe, $telport, $fax, $adressemail, $adressewww);
Cet article provient de NPDS REvolution 16
https://lab.grottes-et-karsts-de-chine.org/viewtopic.php?topic=16794&forum=5