Created
June 28, 2019 13:10
-
-
Save rasoulvatanparast/0c5ff330d1cda71fb3a8a159ff808565 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$x = 10; | |
function test(){ | |
echo $GLOBALS['x']; | |
} | |
test(); | |
/* | |
OUTPUT | |
10 | |
*/ | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment