Created
June 28, 2019 15:09
-
-
Save rasoulvatanparast/bc35e8ac733af70796e4e37e07cc8d2b 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; | |
$y = 15; | |
function test(){ | |
global $x, $y; | |
$x = $x * $y; | |
} | |
test(); | |
echo $x; | |
/* | |
OUTPUT | |
150 | |
*/ | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment