Source for file serializeWithComment.php
Documentation is available at serializeWithComment.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';
$foo->comment = 'This is a comment';
$foo->value = 'My value';
$foo->bar = new stdClass ();
$foo->bar->value = 'Another value';
$foo->bar->comment = 'Another comment';
$foo->tomato = new stdClass ();
$foo->tomato ->comment = 'And a last comment';
$xml = $serializer->getSerializedData ();
Documentation generated on Mon, 11 Mar 2019 15:41:41 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|