Created
June 28, 2019 15:08
-
-
Save rasoulvatanparast/7121beb808adb630107cb209f2632181 to your computer and use it in GitHub Desktop.
This file contains hidden or 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(){ | |
global $x; | |
echo $x; | |
} | |
echo $x; | |
test(); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment