PHP :
$nom_de_la_variable = "valeur"; // chaîne valeur
$nom_de_la_variable = 10; // entier valeur
Attention toutefois, $Variable ne correspond pas a $variable, ce sont deux variables différentes.
Pour récupérer une variable, on l'appelle tout simplement par son nom :
PHP :
echo $variable;
echo "Texte avant $variable Texte après";
echo "Texte avant " . $variable . " Texte après";
Marquer favoris
Bookmark
Email This
Hits: 613
Commentaires (0)

Ecrivez un commentaire





















