PHP and WDDX
As previously stated, a WDDX module has been available for PHP since version 4.0 of the language. Created by Andrei Zmievski, this WDDX module includes standard serialization and deserialization functions to convert PHP variables and arrays into WDDX-compatible data structures.
If you’re using a stock PHP binary, it’s quite likely that you’ll need to recompile PHP to add support for this library to your PHP build (detailed instructions for accomplishing this are available in Appendix A, “Recompiling PHP to Add XML Support”).
Encoding Data with WDDX
PHP’s WDDX module offers a number of different ways to encode data into WDDX. The following sections demonstrate this by using the following:
The wddx_serialize_value() function