Wddx_serialize_vars () is used to serialize the arguments passed to a function into a WDDX packet.
Wddx_serialize_vars () takes the number of arguments, either a variable string name, or an array containing the variable string name, or another array, and so on.
Example:
<?php
$a = 1;
$b = 5.5;
$c = Array ("Blue", "orange", "Violet");
$d = "Colors";
$clvars = Array ("C", "D");
Print Wddx_serialize_vars ("A", "B", $clvars);
?>
The example above will produce:
<wddxpacket version= ' 1.0 ' ><header/><data><struct><var name= ' a ' ><number>1< /number></var> <var name= ' B ' ><number>5.5</number></var><var name= ' C ' >< Array length= ' 3 ' > <string>blue</string><string>orange</string><string>violet </string></array></var> <var name= ' d ' ><string>colors</string></var> </struct></data></wddxPacket>
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.