CVS update: php3/doc/functions
| From: | eschmid | Date: | Thu, 04 Feb 1999 07:20:06 +0000 |
| Subject: | CVS update: php3/doc/functions | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-3879@lists.php.net to get a copy of this message | ||
Date: Thursday February 4, 1999 @ 2:20
Author: eschmid
Update of /repository/php3/doc/functions
In directory asf:/u/temp/cvs-serv18692
Modified Files:
wddx.sgml
Log Message:
Jade is now happy.
Index: php3/doc/functions/wddx.sgml
diff -c php3/doc/functions/wddx.sgml:1.3 php3/doc/functions/wddx.sgml:1.4
*** php3/doc/functions/wddx.sgml:1.3 Wed Feb 3 22:34:06 1999
--- php3/doc/functions/wddx.sgml Thu Feb 4 02:20:06 1999
***************
*** 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");
--- 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");
***************
*** 50,70 ****
$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>
--- 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>
--
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