CVS update: php3/doc/functions
| From: | ssb | Date: | Tue, 17 Nov 1998 09:53:55 +0000 |
| Subject: | CVS update: php3/doc/functions | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-2435@lists.php.net to get a copy of this message | ||
Date: Tuesday November 17, 1998 @ 4:53
Author: ssb
Update of /repository/php3/doc/functions
In directory asf:/u2/tmp/cvs-serv17169
Modified Files:
math.sgml
Log Message:
base_convert() doc
Index: php3/doc/functions/math.sgml
diff -c php3/doc/functions/math.sgml:1.18 php3/doc/functions/math.sgml:1.19
*** php3/doc/functions/math.sgml:1.18 Tue Nov 3 13:10:17 1998
--- php3/doc/functions/math.sgml Tue Nov 17 04:53:54 1998
***************
*** 147,152 ****
--- 147,184 ----
</refentry>
+ <refentry id="function.base-convert">
+ <refnamediv>
+ <refname>base_convert</refname>
+ <refpurpose>convert a number between arbitrary bases</refpurpose>
+ </refnamediv>
+ <refsect1>
+ <title>Description</title>
+ <funcsynopsis>
+ <funcdef>strin <function>base_convert</function></funcdef>
+ <paramdef>string <parameter>number</parameter></paramdef>
+ <paramdef>int <parameter>frombase</parameter></paramdef>
+ <paramdef>int <parameter>tobase</parameter></paramdef>
+ </funcsynopsis>
+ <para>
+ Returns a string containing <parameter>number</parameter>
+ represented in base <parameter>tobase</parameter>. The base in
+ which <parameter>number</parameter> is given is specified in
+ <parameter>frombase</parameter>. Both
+ <parameter>frombase</parameter> and <parameter>tobase</parameter>
+ have to be between 2 and 36, inclusive. Digits in numbers with a
+ base higher than 10 will be represented with the letters a-z,
+ with a meaning 10, b meaning 11 and z meaning 36.
+ <example>
+ <title>base_convert()</title>
+ <programlisting role=php>
+ $binary = base_convert($hexadecimal, 16, 2);
+ </programlisting>
+ </example>
+ </refsect1>
+ </refentry>
+
+
<refentry id="function.bindec">
<refnamediv>
<refname>BinDec</refname>
--
PHP Development Mailing List http://www.php.net/
To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net
For help: php-dev-help@lists.php.net