<?php class C { public $foo; protected $bar; 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.