Created
June 26, 2013 02:51
-
-
Save abrahamvegh/5864397 to your computer and use it in GitHub Desktop.
You can't explain that.
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 SDM\DB | |
{ | |
class MySQL | |
{ | |
public function __construct () | |
{ | |
echo 'MySQL->__construct()', "\n"; | |
} | |
} | |
} | |
namespace | |
{ | |
ini_set('display_errors', 1); | |
error_reporting(-1); | |
?> | |
<pre> | |
<?php | |
use SDM\DB; | |
$db = new MySQL; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Output: