CVS update: php3/doc/functions

From: Date: Thu, 04 Feb 1999 03:34:06 +0000
Subject: CVS update: php3/doc/functions
Groups: php.dev 
Request: Send a blank email to php-dev+get-3871@lists.php.net to get a copy of this message
Date: Wednesday February 3, 1999 @ 22:34 Author: andrey Update of /repository/php3/doc/functions In directory asf:/u/temp/cvs-serv21153/functions Modified Files: wddx.sgml Log Message: Some small fixes. Index: php3/doc/functions/wddx.sgml diff -c php3/doc/functions/wddx.sgml:1.2 php3/doc/functions/wddx.sgml:1.3 *** php3/doc/functions/wddx.sgml:1.2 Tue Feb 2 01:49:54 1999 --- php3/doc/functions/wddx.sgml Wed Feb 3 22:34:06 1999 *************** *** 14,40 **** string key, then it is serialized into a structure, otherwise, into an array. ! <example> ! <title>Serializing a single value</title> ! <programlisting role="php"> &lt;?php print wddx_serialize_value("PHP to WDDX packet example", "PHP packet"); ?&gt; ! </programlisting> ! </example> ! <para> ! This example will produce: ! <informalexample> ! <programlisting role="php"> &lt;wddxPacket version='0.9'&gt;&lt;header comment='PHP packet'/&gt;&lt;data&gt; &lt;string&gt;PHP to WDDX packet example&lt;/string&gt;&lt;/data&gt;&lt;/wddxPacket&gt; ! </programlisting> ! </informalexample> ! ! <example> ! <title>Using incremental packets</title> ! <programlisting role="php"> &lt;?php $pi = 3.1415926; $packet_id = wddx_packet_start("PHP"); --- 14,43 ---- string key, then it is serialized into a structure, otherwise, into an array. ! <refsect1> ! <title>Examples</title> ! <para> ! <example> ! <title>Serializing a single value</title> ! <programlisting role="php"> &lt;?php print wddx_serialize_value("PHP to WDDX packet example", "PHP packet"); ?&gt; ! </programlisting> ! </example> ! <para> ! This example will produce: ! <informalexample> ! <programlisting role="php"> &lt;wddxPacket version='0.9'&gt;&lt;header comment='PHP packet'/&gt;&lt;data&gt; &lt;string&gt;PHP to WDDX packet example&lt;/string&gt;&lt;/data&gt;&lt;/wddxPacket&gt; ! </programlisting> ! </informalexample> ! ! <example> ! <title>Using incremental packets</title> ! <programlisting role="php"> &lt;?php $pi = 3.1415926; $packet_id = wddx_packet_start("PHP"); *************** *** 47,66 **** $packet = wddx_packet_end($packet_id); print $packet; ?&gt; ! </programlisting> ! </example> ! <para> ! This example will produce: ! <informalexample> ! <programlisting role="php"> &lt;wddxPacket version='0.9'&gt;&lt;header comment='PHP'/&gt;&lt;data&gt;&lt;struct&gt; &lt;var name='pi'&gt;&lt;number&gt;3.1415926&lt;/number&gt;&lt;/var&gt;&lt;var name='cities'&gt; &lt;array length='3'&gt;&lt;string&gt;Austin&lt;/string&gt;&lt;string&gt;Novato&lt;/string&gt; &lt;string&gt;Seattle&lt;/string&gt;&lt;/array&gt;&lt;/var&gt;&lt;/struct&gt;&lt;/data&gt;&lt;/wddxPacket&gt; ! </programlisting> ! </informalexample> </partintro> <refentry id="function.wddx-serialize-value"> --- 50,71 ---- $packet = wddx_packet_end($packet_id); print $packet; ?&gt; ! </programlisting> ! </example> ! <para> ! This example will produce: ! <informalexample> ! <programlisting role="php"> &lt;wddxPacket version='0.9'&gt;&lt;header comment='PHP'/&gt;&lt;data&gt;&lt;struct&gt; &lt;var name='pi'&gt;&lt;number&gt;3.1415926&lt;/number&gt;&lt;/var&gt;&lt;var name='cities'&gt; &lt;array length='3'&gt;&lt;string&gt;Austin&lt;/string&gt;&lt;string&gt;Novato&lt;/string&gt; &lt;string&gt;Seattle&lt;/string&gt;&lt;/array&gt;&lt;/var&gt;&lt;/struct&gt;&lt;/data&gt;&lt;/wddxPacket&gt; ! </programlisting> ! </informalexample> ! </refsect1> ! </partintro> <refentry id="function.wddx-serialize-value"> *************** *** 97,103 **** <title>Description</title> <funcsynopsis> <funcdef>string <function>wddx_serialize_vars</function></funcdef> ! <paramdef>void </paramdef> </funcsynopsis> <para> --- 102,110 ---- <title>Description</title> <funcsynopsis> <funcdef>string <function>wddx_serialize_vars</function></funcdef> ! <paramdef>string <parameter>var_name</parameter> | ! array <parameter>var_names</parameter> [, ... ] ! </paramdef> </funcsynopsis> <para> -- PHP Development Mailing List http://www.php.net/ To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net For help: php-dev-help@lists.php.net

« previous php.dev (#3871) next »