nlopess         Wed Dec 17 11:02:20 2003 EDT

  Modified files:              
    /phpdoc/en/reference/math/functions bindec.xml 
  Log:
  added example
  
Index: phpdoc/en/reference/math/functions/bindec.xml
diff -u phpdoc/en/reference/math/functions/bindec.xml:1.4 
phpdoc/en/reference/math/functions/bindec.xml:1.5
--- phpdoc/en/reference/math/functions/bindec.xml:1.4   Mon Dec  8 04:19:12 2003
+++ phpdoc/en/reference/math/functions/bindec.xml       Wed Dec 17 11:02:19 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.bindec">
    <refnamediv>
@@ -22,6 +22,31 @@
      31 bits of 1's or 2147483647 in decimal.
     </para>
     <para>
+     <example>
+      <title><function>bindec</function> example</title>
+      <programlisting role="php">
+<![CDATA[
+<?php
+echo bindec('110011') . "\n";
+echo bindec('000110011') . "\n";
+
+echo bindec('111');
+?>
+]]>
+      </programlisting>
+      <para>
+       The above example will output:
+      </para>
+      <screen>
+<![CDATA[
+51
+51
+7
+]]>
+      </screen>
+     </example>
+    </para>
+    <para>
      See also <function>decbin</function>,
      <function>octdec</function>,
      <function>hexdec</function> and

Reply via email to