nlopess Wed Dec 17 10:49:26 2003 EDT
Modified files:
/phpdoc/en/reference/math/functions dechex.xml
Log:
added example
Index: phpdoc/en/reference/math/functions/dechex.xml
diff -u phpdoc/en/reference/math/functions/dechex.xml:1.4
phpdoc/en/reference/math/functions/dechex.xml:1.5
--- phpdoc/en/reference/math/functions/dechex.xml:1.4 Mon Dec 8 04:19:12 2003
+++ phpdoc/en/reference/math/functions/dechex.xml Wed Dec 17 10:49:26 2003
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.4 $ -->
+<!-- $Revision: 1.5 $ -->
<!-- splitted from ./en/functions/math.xml, last change in rev 1.2 -->
<refentry id="function.dechex">
<refnamediv>
@@ -18,6 +18,28 @@
be converted is 2147483647 in decimal resulting to "7fffffff".
</para>
<para>
+ <example>
+ <title><function>dechex</function> example</title>
+ <programlisting role="php">
+<![CDATA[
+<?php
+echo dechex(10) . "\n";
+echo dechex(47);
+?>
+]]>
+ </programlisting>
+ <para>
+ The above example will output:
+ </para>
+ <screen>
+<![CDATA[
+a
+2f
+]]>
+ </screen>
+ </example>
+ </para>
+ <para>
See also <function>hexdec</function>,
<function>decbin</function>,
<function>decoct</function> and