The get_called_class() function is an inbuilt function in PHP which is used to get the class name where the static method is called.
string get_called_class( void )
Parameters: This method does not accept any parameter.
Return Value: This function returns the class name on success and returns False if it is called from outside a class.
Below programs illustrate the get_called_class() function in PHP:
string(3) "GFG" string(3) "GFG" string(3) "GFG" string(3) "GFG"