<?php function a (&$b) { return json_encode($b); } $x = new stdClass(); $x->blop = 'bla'; $x->bla = 3; $x->bar = array('baz' => 'apple'); $y = a($x); var_dump($y);
You have javascript disabled. You will not be able to edit any code.