Source Code:
(back to article)
<?php $x = 10; function myFunction() { global $x; echo $x; } myFunction(); // Outputs 10 ?>
Result:
Report an issue