<?php namespace com\getinstance\util; class Debug { static function helloWorld() { print "hello from Debug\n"; } } namespace main; \com\getinstance\util\Debug::helloWorld();
<?php namespace com\getinstance\util; class Debug { static function helloWorld() { print "hello from Debug\n"; } } namespace main; use com\getinstance\util\Debug as uDebug; class Debug { static function helloWorld() { print "hello from main\\Debug"; } } uDebug::helloWorld();
<?php namespace com\getinstance\util; class Debug { static function helloWorld() { print "hello from Debug\n"; } } namespace main; use com\getinstance\util; util\Debug::helloWorld();