September 2001
Intermediate to advanced
768 pages
32h 45m
English
string wddx_packet_end(int packetID) Ends the specified WDDX packet and returns the string containing it.
Returns:
String containing the WDDX packet
Description:
This functions finalizes the packet identified with the passed argument, and returns a string containing the full WDDX packet.
Version:
Existing since versions 3.0.7 and 4.0
Example:
/* OUTPUT <wddxPacket version='1.0'> <header/> <data> <struct> <var name='foo'><string>FOO</string></var> </struct> </data> </wddxPacket> */ // assign variable $foo = "FOO"; $id = wddx_packet_start(); wddx_add_vars($id, "foo"); // output packet print(wddx_packet_end($id)); |
Read now
Unlock full access