<?php class Foo { public function __sleep() { return array('foo' => 'bar'); } } var_dump(json_encode(new Foo()));
You have javascript disabled. You will not be able to edit any code.