Question from the PHP - Fundamentals test

Usage of the global scope in a PHP function.

Hard

What is the output of the following code ?

$x = 42; 
function f() {
  echo "The value of x is : $x";
}
f();
Author: ThéoStatus: PublishedQuestion passed 1969 times
Edit
2
Community EvaluationsNo one has reviewed this question yet, be the first!