Source for file unserializeWithTagMap.php
Documentation is available at unserializeWithTagMap.php
* This example shows how to use the tagMap option.
* @author Stephan Schmidt <schst@php.net>
// this is a simple XML document
require_once 'XML/Unserializer.php';
// complex structures are arrays, the key is the attribute 'handle' or 'name', if handle is not present
// be careful to always use the ampersand in front of the new operator
// userialize the document
if (PEAR ::isError ($status)) {
echo 'Error: ' . $status->getMessage ();
$data = $unserializer->getUnserializedData ();
// userialize the document
if (PEAR ::isError ($status)) {
echo 'Error: ' . $status->getMessage ();
$data = $unserializer->getUnserializedData ();
Documentation generated on Mon, 11 Mar 2019 15:41:41 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|