2013-07-20 76 views
0
create xml 
$country="Australia"; 
$va=wddx_serialize_value($country); 
$data="data.xml"; 
$fp=fopen($data, "w+") or die("can't open file"); 
fwrite($fp, $va, strlen($va)); 
fclose($fp); 

如何通過讀取xml文件找回「澳大利亞」值?謝謝PHP如何創建WDDX XML文件並將WDDX XML文件讀入對象?

+0

使用'wddx_deserialize'。 http://www.php.net/manual/en/function.wddx-deserialize.php – Barmar

回答

0
$va = file_get_contents("data.xml"); 
$country = wddx_deserialize($va); 
+0

感謝您的幫助 – hehetest