Name

get_called_class

Synopsis

string get_called_class()

Returns the name of the class that a static method was called on via late static binding, or false if called outside a class static method.

Get Programming PHP, 3rd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.