cvs: phpdoc-zh /reference/math/functions bindec.xml

From: Date: Fri, 12 Aug 2005 07:06:27 +0000
Subject: cvs: phpdoc-zh /reference/math/functions bindec.xml
Groups: php.doc.zh 
Request: Send a blank email to doc-zh+get-2217@lists.php.net to get a copy of this message
lm92 Fri Aug 12 03:06:27 2005 EDT Modified files: /phpdoc-zh/reference/math/functions bindec.xml Log: updated to en version http://cvs.php.net/diff.php/phpdoc-zh/reference/math/functions/bindec.xml?r1=1.2&r2=1.3&ty=u Index: phpdoc-zh/reference/math/functions/bindec.xml diff -u phpdoc-zh/reference/math/functions/bindec.xml:1.2 phpdoc-zh/reference/math/functions/bindec.xml:1.3 --- phpdoc-zh/reference/math/functions/bindec.xml:1.2 Sun Mar 9 05:19:07 2003 +++ phpdoc-zh/reference/math/functions/bindec.xml Fri Aug 12 03:06:25 2005 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.2 $ --> -<!-- $Author: dallas $ --> -<!-- EN-Revision: 1.3 Maintainer: dallas Status: ready --> +<!-- $Revision: 1.3 $ --> +<!-- $Author: lm92 $ --> +<!-- EN-Revision: 1.8 Maintainer: dallas Status: ready --> <refentry id="function.bindec"> <refnamediv> <refname>bindec</refname> @@ -10,7 +10,7 @@ <refsect1> <title>˵Ã÷</title> <methodsynopsis> - <type>int</type><methodname>bindec</methodname> + <type>number</type><methodname>bindec</methodname> <methodparam><type>string</type><parameter>binary_string</parameter></methodparam> </methodsynopsis> <para> @@ -19,10 +19,35 @@ </para> <para> <function>bindec</function> ½«Ò»¸ö¶þ½øÖÆÊýת»»³É - <type>integer</type>¡£¿Éת»»µÄ×î´óµÄÊýΪ 31 λ 1 »òÕß˵ʮ½øÖÆµÄ 2147483647¡£ + <type>integer</type>¡£¿Éת»»µÄ×î´óµÄÊýΪ 31 λ 1 »òÕß˵ʮ½øÖÆµÄ 2147483647¡£PHP 4.1.0 + ¿ªÊ¼£¬¸Ãº¯Êý¿ÉÒÔ´¦Àí´óÊýÖµ£¬ÕâÖÖÇé¿öÏ£¬Ëü»á·µ»Ø <type>float</type> ÀàÐÍ¡£ </para> <para> - ²Î¼û <function>decbin</function>¡£ + <example> + <title><function>bindec</function> ·¶Àý</title> + <programlisting role="php"> +<![CDATA[ +<?php +echo bindec('110011') . "\n"; +echo bindec('000110011') . "\n"; + +echo bindec('111'); +?> +]]> + </programlisting> + &example.outputs; + <screen> +<![CDATA[ +51 +51 +7 +]]> + </screen> + </example> + </para> + <para> + ²Î¼û <function>decbin</function>£¬<function>octdec</function>£¬<function>hexdec</function> + ºÍ <function>base_convert</function>¡£ </para> </refsect1> </refentry>

« previous php.doc.zh (#2217) next »