Skip to content

Instantly share code, notes, and snippets.

@marcoow
Created July 20, 2009 08:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marcoow/150205 to your computer and use it in GitHub Desktop.
Save marcoow/150205 to your computer and use it in GitHub Desktop.
// 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