All about development
Mittwoch, 29. Januar 2014
PHP get class name without the namespace
This is the easiest way to get the name of the current class without the namespace:
public function getName() { $path = explode('\\', __CLASS__); return array_pop($path); }
Keine Kommentare:
Kommentar veröffentlichen
‹
›
Startseite
Web-Version anzeigen
Keine Kommentare:
Kommentar veröffentlichen