Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
class aParent { static private $classname = __CLASS__; static function my_classname() { return self::$classname; } } class aChild extends aParent { static public $classname = __CLASS__; static public function my_classname() { return self::$classname; } } $child = new aChild; echo $child->my_classname(); # this gives me 'Parent' echo "\n"; echo aChild::my_classname(); echo "\n";
This paste will be private.
From the Design Piracy series on my blog: