Get the "Late Static Binding" class name in PHP
Description
The following code shows how to get the "Late Static Binding" class name.
Example
/*from ww w .j av a 2s . c om*/
<?php
class foo {
static public function test() {
var_dump(get_called_class());
}
}
class bar extends foo {
}
foo::test();
bar::test();
?>
The code above generates the following result.