Source for file serializeObject.php
Documentation is available at serializeObject.php
* This is just a basic example that shows
* how objects can be serialized so they can
* be fully restored later.
* @author Stephan Schmidt <schst@php.net>
require_once 'XML/Serializer.php';
// this is just to get a nested object
$pearError = PEAR ::raiseError ('This is just an error object',123 );
"defaultTagName" => "unnamedItem",
$foo->value = "My value";
$foo->error = $pearError;
$foo->obj = new stdClass;
$xml = $serializer->getSerializedData ();
Documentation generated on Mon, 11 Mar 2019 10:15:34 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|