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