<?php class C { public $foo; protected $bar; private $baz = 'baz'; public function __construct($bar) { $this->bar = $bar; } } $c = new C('bar'); $c->foo = 'foo'; echo serialize($c);
You have javascript disabled. You will not be able to edit any code.