<?require_once('/path/to/Serializer.class.php');class TestClass{ var $var; function TestClass($var){ $this->var = $var; }}$ret = array('a1', 'abc'=>array('a','b','c'), 'object'=> (new TestClass('test var')));$format = $_REQUEST['format'];print Serializer:serialize($ret,$format);?>