Skip to content

Instantly share code, notes, and snippets.

@kaja47
Created May 17, 2013 00:50
Show Gist options
  • Select an option

  • Save kaja47/5596254 to your computer and use it in GitHub Desktop.

Select an option

Save kaja47/5596254 to your computer and use it in GitHub Desktop.
<?php
namespace Really\Long\Namespace;
class A {
static function myfunc() {}
const myfunc = 'Really\Long\Namespace\A::myfunc'
}
<?php
use Really\Long\Namespace\A;
$f = 'Really\Long\Namespace\A::myfunc'; // class-ter fuck
$f = A::myfunc; // it almost look like we don't fuck around with strings
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment