<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <title>Add variables to a WDDX packet with the specified ID</title> </head> <body><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="ref.wddx.html">WDDX Functions</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.wddx-deserialize.html">wddx_deserialize</a></div> <div class="up"><a href="ref.wddx.html">WDDX Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div><hr /><div id="function.wddx-add-vars" class="refentry"> <div class="refnamediv"> <h1 class="refname">wddx_add_vars</h1> <p class="verinfo">(PHP 4, PHP 5)</p><p class="refpurpose"><span class="refname">wddx_add_vars</span> — <span class="dc-title">Add variables to a WDDX packet with the specified ID</span></p> </div> <div class="refsect1 description" id="refsect1-function.wddx-add-vars-description"> <h3 class="title">Description</h3> <div class="methodsynopsis dc-description"> <span class="type">bool</span> <span class="methodname"><strong>wddx_add_vars</strong></span> ( <span class="methodparam"><span class="type">resource</span> <code class="parameter">$packet_id</code></span> , <span class="methodparam"><span class="type"><a href="language.pseudo-types.html#language.types.mixed" class="type mixed">mixed</a></span> <code class="parameter">$var_name</code></span> [, <span class="methodparam"><span class="type"><a href="language.pseudo-types.html#language.types.mixed" class="type mixed">mixed</a></span> <code class="parameter">$...</code></span> ] )</div> <p class="para rdfs-comment"> Serializes the passed variables and add the result to the given packet. </p> </div> <div class="refsect1 parameters" id="refsect1-function.wddx-add-vars-parameters"> <h3 class="title">Parameters</h3> <p class="para"> This function takes a variable number of parameters. <dl> <dt> <span class="term"><em><code class="parameter">packet_id</code></em></span> <dd> <p class="para"> A WDDX packet, returned by <span class="function"><a href="function.wddx-packet-start.html" class="function">wddx_packet_start()</a></span>. </p> </dd> </dt> <dt> <span class="term"><em><code class="parameter">var_name</code></em></span> <dd> <p class="para"> Can be either a string naming a variable or an array containing strings naming the variables or another array, etc. </p> </dd> </dt> <dt> <span class="term"><em><code class="parameter">...</code></em></span> <dd> <p class="para"> </p> </dd> </dt> </dl> </p> </div> <div class="refsect1 returnvalues" id="refsect1-function.wddx-add-vars-returnvalues"> <h3 class="title">Return Values</h3> <p class="para"> Returns <strong><code>TRUE</code></strong> on success or <strong><code>FALSE</code></strong> on failure. </p> </div> </div><hr /><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="ref.wddx.html">WDDX Functions</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.wddx-deserialize.html">wddx_deserialize</a></div> <div class="up"><a href="ref.wddx.html">WDDX Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div></body></html>