Run »
Variable x inside function is: $x"; } myTest(); // using x outside the function will generate an error echo "
Variable x outside function is: $x
"; ?>
Variable x inside function is: 5
Variable x outside function is: