Skip to content

Instantly share code, notes, and snippets.

@yuanqing
Last active August 29, 2015 14:03
Show Gist options
  • Save yuanqing/e7b31f982a23333d2fd6 to your computer and use it in GitHub Desktop.
Save yuanqing/e7b31f982a23333d2fd6 to your computer and use it in GitHub Desktop.
PHP: Use
<?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