get_called_class

the "Late Static Binding" class name

&reftitle.description; `string` `get_called_class`

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

&reftitle.returnvalues;

Returns the class name. Returns &false; if called from outside a class.

&reftitle.examples;

### Using `get_called_class`

    <?php

    class foo {
        static public function test() {
            var_dump(get_called_class());
        }
    }

    class bar extends foo {
    }

    foo::test();
    bar::test();

    ?>

&example.outputs;

    string(3) "foo"
    string(3) "bar"

&reftitle.seealso;

- `get_parent_class`
- `get_class`
- `is_subclass_of`