Arquivos
hhvm/hphp/test/quick/ns_use_func.php
T
Paul Tarjan 9309f4c9c7 don't use aliases for functions or constants
@andrewparoski had the excellent observation that functions and constants don't get imported with use statements.
2013-05-15 13:05:10 -07:00

9 linhas
97 B
PHP

<?php
namespace A {
function f() { return 'a'; }
}
namespace B {
use A\f;
var_dump(f());
}