9309f4c9c7
@andrewparoski had the excellent observation that functions and constants don't get imported with use statements.
9 linhas
97 B
PHP
9 linhas
97 B
PHP
<?php
|
|
namespace A {
|
|
function f() { return 'a'; }
|
|
}
|
|
namespace B {
|
|
use A\f;
|
|
var_dump(f());
|
|
}
|