Created
June 28, 2019 14:37
-
-
Save rasoulvatanparast/6dd91e3fbd1b15ad77de968c3046b4cd 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 | |
function test(){ | |
$x = 10; | |
echo $x; | |
} | |
test(); | |
echo $x; | |
/* | |
OUTPUT | |
10 | |
Notice: Undefined variable: x | |
*/ | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment