Utilisation de variables globales en php.
fatabien
Messages postés
27
Statut
Membre
-
PhP Messages postés 1774 Statut Membre -
PhP Messages postés 1774 Statut Membre -
Comment utiliser une variable définie dans le programme courant, à l'intérieur d'une fonction ?
J'ai essayé ceci, mais ça ne marche pas.
function maFonction()
{
echo $GLOBALS['maVar'];
}
fatabien
www.rock-insight.fr.st
J'ai essayé ceci, mais ça ne marche pas.
function maFonction()
{
echo $GLOBALS['maVar'];
}
fatabien
www.rock-insight.fr.st