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 1922 times
Edit
1
Community EvaluationsNo one has reviewed this question yet, be the first!