Created
July 20, 2009 08:41
-
-
Save marcoow/150205 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// application library 1 | |
namespace App\Lib1; | |
const MYCONST = 'App\Lib1\MYCONST'; | |
function MyFunction() { | |
return __FUNCTION__; | |
} | |
class MyClass { | |
static function WhoAmI() { | |
return __METHOD__; | |
} | |
} | |
... | |
//usage (WTF?): | |
\App\Lib2\MyFunction() | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment