nlopess         Wed Dec 17 11:09:51 2003 EDT

  Modified files:              
    /phpdoc/en/reference/math/functions decoct.xml 
  Log:
  added example
  
Index: phpdoc/en/reference/math/functions/decoct.xml
diff -u phpdoc/en/reference/math/functions/decoct.xml:1.4 
phpdoc/en/reference/math/functions/decoct.xml:1.5
--- phpdoc/en/reference/math/functions/decoct.xml:1.4   Mon Dec  8 04:19:12 2003
+++ phpdoc/en/reference/math/functions/decoct.xml       Wed Dec 17 11:09:51 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.8 -->
   <refentry id="function.decoct">
    <refnamediv>
@@ -18,6 +18,28 @@
      2147483647 in decimal resulting to "17777777777". 
     </para>
     <para>
+     <example>
+      <title><function>decoct</function> example</title>
+      <programlisting role="php">
+<![CDATA[
+<?php
+echo decoct(15) . "\n";
+echo decoct(264);
+?>
+]]>
+      </programlisting>
+      <para>
+       The above example will output:
+      </para>
+      <screen>
+<![CDATA[
+17
+410
+]]>
+      </screen>
+     </example>
+    </para>
+    <para>
      See also <function>octdec</function>,
      <function>decbin</function>,
      <function>dechex</function> and

Reply via email to