wddx_deserialize

mixed wddx_deserialize(string packet) 

Deserializes a WDDX packet.

Returns:

PHP variable or an array containing the deserialized packets; FALSE on error

Description:

wddx_deserialize() transforms a WDDX packet into PHP variables. Scalar packets

(ARRAY, BOOLEAN, CHAR, CODE, NULL, NUMBER, STRING) are transformed into their direct or approximate PHP types; other packets (STRUCT) are deserialized into a PHP array. Some WDDX datatypes may not be supported in PHP (for example, in version 4.0, RECORDSET is not supported).

Version:

Existing since versions 3.0.7 and 4.0

Example:

Deserialize a WDDX packet
 /* OUTPUT string(3) "FOO" */ $packet = "<wddxPacket version='1.0'><header/><data><var name='foo'><string>FOO</string></var></data></wddxPacket>"; ...

Get PHP Functions Essential Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.