XML_Wddx
[ class tree: XML_Wddx ] [ index: XML_Wddx ] [ all elements ]

Source for file example.php

Documentation is available at example.php

  1. <?php
  2. require_once 'XML/Wddx.php';
  3.  
  4. $o = new StdClass;
  5. $o->x = "vvvv";
  6. $ar = array(
  7.     'a' => 1,
  8.     'b' => "TESTING \n 123\n",
  9.     'c' => $o,
  10.     'd' => array('x','y','z')
  11. );
  12.  
  13.  
  14. //$ar = '1';
  15. print_r($ar);
  16. $wddx = XML_Wddx::serialize($ar);
  17. print_r($wddx);
  18. print_R(wddx_deserialize($wddx));
  19. print_R(XML_Wddx::deserialize($wddx));
  20.  
  21.  
  22. $big = XML_Wddx::deserialize(file_get_contents(dirname(__FILE__.'/validate.wddx'));
  23. print_r($big[0]);
  24. $big wddx_deserialize(file_get_contents(dirname(__FILE__.'/validate.wddx'));
  25. print_r($big[0]);

Documentation generated on Mon, 11 Mar 2019 15:39:25 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.