Below is the simple function to get class name without namesapce.
public function getClassName() { $path = explode('\\', __CLASS__); return array_pop($path); }
Tutorials focused on Web Development, ReactJS, JavaScript, PHP, Database Design, Devops
Below is the simple function to get class name without namesapce.
public function getClassName() { $path = explode('\\', __CLASS__); return array_pop($path); }