WDDX function Library: wddx_serialize_vars

Source: Internet
Author: User
Keywords PHP Chinese function manual Wddx_serialize_vars wddx function library
Tags aliyun array function function library html http name php

Wddx_serialize_vars

(PHP3 >= 3.0.7, PHP4 >= 4.0b2)

Wddx_serialize_vars---&http://www.aliyun.com/zixun/aggregation/37954.html ">nbsp; Serial variable becomes a WDDX envelope

Syntax: String wddx_serialize_vars (mixed var_name [, mixed ...])

Description:

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>

Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.