Get class name from namespace

It's a good trick from Gedmo doctrine extensions lib:

$className = substr($namespace, strrpos($namespace, '\\') + 1);

Comments