Last active
August 29, 2015 14:03
-
-
Save yuanqing/e7b31f982a23333d2fd6 to your computer and use it in GitHub Desktop.
PHP: Use
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 | |
error_reporting(E_ALL); | |
ini_set('display_errors', 1); | |
# error | |
use Foo; | |
use Bar\Foo; # cannot use Bar\Foo as Foo because the name is already in use | |
# ok | |
use Foo; | |
use Bar\Foo as BarFoo; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment