Skip to content

Instantly share code, notes, and snippets.

@msjyoo
Created December 7, 2015 10:01
Show Gist options
  • Save msjyoo/5379e383439c1d7a235d to your computer and use it in GitHub Desktop.
Save msjyoo/5379e383439c1d7a235d to your computer and use it in GitHub Desktop.
<?php
namespace test {
$a = 1;
}
namespace test2 {
var_dump($a++);
}
namespace test {
var_dump($a++);
}
@msjyoo
Copy link
Author

msjyoo commented Dec 7, 2015

Output:

int(1)
int(2)

PHP 7.0.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment