Esempio n. 1
0
<?php

namespace com\getinstance\util;

class Debug
{
    static function helloWorld()
    {
        print "hello from Debug\n";
    }
}
namespace main;

\com\getinstance\util\Debug::helloWorld();
Esempio n. 2
0
<?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();
Esempio n. 3
0
<?php

namespace com\getinstance\util;

class Debug
{
    static function helloWorld()
    {
        print "hello from Debug\n";
    }
}
namespace main;

use com\getinstance\util;
util\Debug::helloWorld();