derick Sat May 19 17:50:14 2001 EDT
Modified files:
/phpdoc/en/functions network.xml strings.xml
Log:
- Added the %u modifier to sprintf().
- Added an example to ip2long, which shows how to print it with the %u
modifier.
Index: phpdoc/en/functions/network.xml
diff -u phpdoc/en/functions/network.xml:1.32 phpdoc/en/functions/network.xml:1.33
--- phpdoc/en/functions/network.xml:1.32 Fri May 18 09:27:29 2001
+++ phpdoc/en/functions/network.xml Sat May 19 17:50:14 2001
@@ -520,6 +520,20 @@
</example>
</para>
<para>
+ This second example shows how to print a converted address with the
+ printf function:
+ <example>
+ <title><function>IP Adres displaying</function> Example</title>
+ <programlisting role="php">
+<?php
+$ip = gethostbyname("www.php.net");
+printf ("%u\n", ip2long ($ip));
+echo $out;
+?>
+ </programlisting>
+ </example>
+ </para>
+ <para>
See also: <function>long2ip</function>
</para>
</refsect1>
Index: phpdoc/en/functions/strings.xml
diff -u phpdoc/en/functions/strings.xml:1.86 phpdoc/en/functions/strings.xml:1.87
--- phpdoc/en/functions/strings.xml:1.86 Wed May 2 07:11:06 2001
+++ phpdoc/en/functions/strings.xml Sat May 19 17:50:14 2001
@@ -1891,7 +1891,11 @@
</member>
<member>
<literal>d</literal> - the argument is treated as an
- integer, and presented as a decimal number.
+ integer, and presented as a (signed) decimal number.
+ </member>
+ <member>
+ <literal>u</literal> - the argument is treated as an
+ integer, and presented as an unsigned decimal number.
</member>
<member>
<literal>f</literal> - the argument is treated as a double,