When you define a function in a namespace,
namespace foo { function bar() { echo \"foo!\\n\"; } class MyClass { } }
you must specif
PHP 5.6 will allow to import functions with the use keyword:
use
namespace foo\bar { function baz() { echo 'foo.bar.baz'; } } namespace { use function foo\bar\baz; baz(); }
See the RFC for more information: https://wiki.php.net/rfc/use_function