Home > PHP > Function > Classes/Objects > get_called_class()

get_called_class()

get_called_class - the "Late Static Binding" class name

Syntax

string get_called_class ()

Arguments

-

Description

Gets the name of the class the static method is called in.

Version

PHP 5.3.0

Return value

Returns the class name. Returns FALSE if called from outside a class.