- strtolower: documentation ( source)
<?php
namespace \One;
abstract class Abs {
public function __toString()
{
return strtolower(get_called_class());
/* Should print test, not abs :P */
}
}
namespace \Two;
class Test extends \One\Abs
{
}
$x = new \Two\Test;
echo $x;