en
en

Question du test PHP - Les bases

Utilisation du scope global dans une fonction PHP.

Difficile

Qu'affiche le code suivant ?

$x = 42; 
function f() {
  echo "The value of x is : $x";
}
f();
Auteur: ThéoStatut : PubliéeQuestion passée 2256 fois
Modifier
5
Évaluations de la communauté
developer avatar
Mohamed Mekkaoui
07/01/2025
+1 , but should the question be "What is(are) the output(s) of the following code" ? (when I see singular I stop reading the choices once I found a correct one)