Created
December 7, 2015 10:01
-
-
Save msjyoo/5379e383439c1d7a235d 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 | |
namespace test { | |
$a = 1; | |
} | |
namespace test2 { | |
var_dump($a++); | |
} | |
namespace test { | |
var_dump($a++); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Output:
int(1)
int(2)
PHP 7.0.0