Arquivos
hhvm/hphp/test/quick/ns_use_const.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
81 B
PHP

<?php
namespace A {
const C = "a";
}
namespace B {
use A\C;
var_dump(C);
}