Created
February 18, 2019 13:37
-
-
Save nurullahisik/e56fbeb521aac95e3e3a71c2326b7310 to your computer and use it in GitHub Desktop.
Global Variable
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 | |
| global $x; | |
| $x = "asd"; | |
| asd(); | |
| function asd() | |
| { | |
| global $x; | |
| echo $x; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment