Location: PHPKode > scripts > Serializer > serializer/Serializer.example.php
<?

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);

?>
Return current item: Serializer