<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<refentry xml:id="function.wddx-add-vars" xmlns="http://docbook.org/ns/docbook">
 <refnamediv>
  <refname>wddx_add_vars</refname>
  <refpurpose>Add variables to a WDDX packet with the specified ID</refpurpose>
 </refnamediv>
 
 <refsynopsisdiv>
  &warn.removed.function-7-4-0;
 </refsynopsisdiv>

 <refsect1 role="description">
  &reftitle.description;
  <methodsynopsis>
   <type>bool</type><methodname>wddx_add_vars</methodname>
   <methodparam><type>resource</type><parameter>packet_id</parameter></methodparam>
   <methodparam><type>mixed</type><parameter>var_name</parameter></methodparam>
   <methodparam rep="repeat"><type>mixed</type><parameter>var_names</parameter></methodparam>
  </methodsynopsis>
  <para>
   Serializes the passed variables and add the result to the given packet.
  </para>
 </refsect1>

 <refsect1 role="parameters">
  &reftitle.parameters;
  <para>
   This function takes a variable number of parameters.
   <variablelist>
    <varlistentry>
     <term><parameter>packet_id</parameter></term>
     <listitem>
      <para>
       A WDDX packet, returned by <function>wddx_packet_start</function>.
      </para>
     </listitem>
    </varlistentry>
    <varlistentry>
     <term><parameter>var_name</parameter></term>
     <listitem>
      <para>
       Can be either a string naming a variable or an array containing
       strings naming the variables or another array, etc.
      </para>
     </listitem>
    </varlistentry>
    <varlistentry>
     <term><parameter>var_names</parameter></term>
     <listitem>
      <para>
      </para>
     </listitem>
    </varlistentry>
   </variablelist>
  </para>
 </refsect1>

 <refsect1 role="returnvalues">
  &reftitle.returnvalues;
  <para>
   &return.success;
  </para>
 </refsect1>
</refentry>

<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->
