CVS update: php3/doc/functions
| From: | andrey | 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">
<?php
print wddx_serialize_value("PHP to WDDX packet example", "PHP packet");
?>
! </programlisting>
! </example>
! <para>
! This example will produce:
! <informalexample>
! <programlisting role="php">
<wddxPacket version='0.9'><header comment='PHP
packet'/><data>
<string>PHP to WDDX packet
example</string></data></wddxPacket>
! </programlisting>
! </informalexample>
!
! <example>
! <title>Using incremental packets</title>
! <programlisting role="php">
<?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">
<?php
print wddx_serialize_value("PHP to WDDX packet example", "PHP packet");
?>
! </programlisting>
! </example>
! <para>
! This example will produce:
! <informalexample>
! <programlisting role="php">
<wddxPacket version='0.9'><header comment='PHP
packet'/><data>
<string>PHP to WDDX packet
example</string></data></wddxPacket>
! </programlisting>
! </informalexample>
!
! <example>
! <title>Using incremental packets</title>
! <programlisting role="php">
<?php
$pi = 3.1415926;
$packet_id = wddx_packet_start("PHP");
***************
*** 47,66 ****
$packet = wddx_packet_end($packet_id);
print $packet;
?>
! </programlisting>
! </example>
! <para>
! This example will produce:
! <informalexample>
! <programlisting role="php">
<wddxPacket version='0.9'><header
comment='PHP'/><data><struct>
<var
name='pi'><number>3.1415926</number></var><var
name='cities'>
<array
length='3'><string>Austin</string><string>Novato</string>
<string>Seattle</string></array></var></struct></data></wddxPacket>
! </programlisting>
! </informalexample>
</partintro>
<refentry id="function.wddx-serialize-value">
--- 50,71 ----
$packet = wddx_packet_end($packet_id);
print $packet;
?>
! </programlisting>
! </example>
! <para>
! This example will produce:
! <informalexample>
! <programlisting role="php">
<wddxPacket version='0.9'><header
comment='PHP'/><data><struct>
<var
name='pi'><number>3.1415926</number></var><var
name='cities'>
<array
length='3'><string>Austin</string><string>Novato</string>
<string>Seattle</string></array></var></struct></data></wddxPacket>
! </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