I want to get the name of my child class in the base class so that whenever an object of child class is created I get the name of the child class in my base class. Something
You can use get_class() passing it the current object reference, like so:
get_class()
class Base_class { function __construct() { $calledClassName = get_class($this); } }
Edit: You can find more info on get_class() in the PHP manual http://php.net/manual/en/function.get-class.php