If I already had a Debug class in the main namespace. What will be the output of the following code?
namespace main;
use com\getinstance\util\Debug;
<pre lang="php" cssfile="hk1_style" >
class Debug {
static function helloWorld() {
print "hello from main\Debug";
}
}
Debug::helloWorld();
- error
- hello from main
- hello from main\\Debug
- debug
(a).error
need an explanation for this answer? contact us directly to get an explanation for this answer