WDDX FunctionsWDDX
&reftitle.intro;
These functions are intended for work with WDDX.
&reftitle.required;
In order to use WDDX, you will need to install the expat library
(which comes with Apache 1.3.7 or higher).
&reftitle.install;
After installing expat compile PHP with
and .
&reftitle.runtime;
&no.config;
&reftitle.resources;
&no.resource;
&reftitle.constants;
&no.constants;
&reftitle.examples;
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.
Serializing a single value
]]>
This example will produce:
PHP to WDDX packet example
]]>
Using incremental packets
]]>
This example will produce:
3.1415926AustinNovatoSeattle
]]>
If you want to serialize non-ASCII characters you have to set
the appropriate locale before doing so (see
setlocale).
&reference.wddx.functions;