|
PHP5中文手册
WDDX Functions简介These functions are intended for work with » WDDX. 需求In order to use WDDX, you will need to install the expat library (which comes with Apache 1.3.7 or higher). 安装After installing expat compile PHP with --enable-wddx. PHP 的 Windows 版本已经内置该扩展模块的支持。无需加载任何附加扩展库即可使用这些函数。 运行时配置本扩展模块在 php.ini 中未定义任何配置选项。 资源类型This extension defines a WDDX packet identifier returned by wddx_packet_start(). 预定义常量本扩展模块未定义任何常量。 范例All the functions that serialize variables use the first element of an array to determine whether the array is to be serialized into an array or structure. If the first element has string key, then it is serialized into a structure, otherwise, into an array. Example#1 Serializing a single value with WDDX
<?php This example will produce:
Example#2 Using incremental packets with WDDX
<?php This example will produce:
Table of Contents
|