cvs: phpdoc-pl /reference/math/functions hexdec.xml
| From: | Leszek Krupinski | Date: | Sun, 16 Apr 2006 00:02:14 +0000 |
| Subject: | cvs: phpdoc-pl /reference/math/functions hexdec.xml | ||
| Groups: | php.doc.pl | ||
| Request: | Send a blank email to doc-pl+get-827@lists.php.net to get a copy of this message | ||
leszek Sun Apr 16 00:02:14 2006 UTC
Modified files:
/phpdoc-pl/reference/math/functions hexdec.xml
Log:
[adi] update to rev. 1.9
http://cvs.php.net/viewcvs.cgi/phpdoc-pl/reference/math/functions/hexdec.xml?r1=1.6&r2=1.7&diff_format=u
Index: phpdoc-pl/reference/math/functions/hexdec.xml
diff -u phpdoc-pl/reference/math/functions/hexdec.xml:1.6
phpdoc-pl/reference/math/functions/hexdec.xml:1.7
--- phpdoc-pl/reference/math/functions/hexdec.xml:1.6 Thu Jun 20 01:44:06 2002
+++ phpdoc-pl/reference/math/functions/hexdec.xml Sun Apr 16 00:02:13 2006
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="iso-8859-2"?>
-<!-- EN-Revision: 1.3 Maintainer: qrak Status: ready -->
-<!-- $Revision: 1.6 $ -->
+<!-- EN-Revision: 1.9 Maintainer: qrak Status: ready -->
+<!-- $Revision: 1.7 $ -->
<refentry id="function.hexdec">
<refnamediv>
<refname>hexdec</refname>
@@ -9,7 +9,7 @@
<refsect1>
<title>Opis</title>
<methodsynopsis>
- <type>int</type><methodname>hexdec</methodname>
+ <type>number</type><methodname>hexdec</methodname>
<methodparam><type>string</type><parameter>hex_string</parameter></methodparam>
</methodsynopsis>
<para>
@@ -18,29 +18,33 @@
szesnastkowy ³añcuch znaków do postaci liczby dziesiêtnej. Najwiêksz±
liczb±, która mo¿e byæ skonwertowana jest 7fffffff, czyli 2147483647
dziesiêtnie.
+ Od PHP 4.1.0, funkcja potrafi konwertowaæ tak¿e wiêksze liczby. W takim
+ przypadku zwraca <type>float</type>
</para>
<para>
- <function>hexdec</function> zast±pi ka¿dy znak, nie bêd±cy cyfr± w systemie
- szesnastkowym liczb± <literal>0</literal>. W ten sposób, wszystko zera
- stoj±ce z lewej strony s± ignorowane, ale zera z prawej strony s± brane
- pod uwagê.
+ <function>hexdec</function> zignoruje wszelkie nie szesnastkowe znaki, które
+ napotka.
<example>
<title>Przyk³ad zastosowania <function>hexdec</function></title>
<programlisting role="php">
<![CDATA[
+<?php
var_dump(hexdec("See"));
var_dump(hexdec("ee"));
// obydwa zwracaj± "int(238)"
-var_dump(hexdec("that"));
-var_dump(hexdec("a0"));
-// obydwa zwracaj± int(160)
+var_dump(hexdec("that")); // print "int(10)"
+var_dump(hexdec("a0")); // print "int(160)"
+?>
]]>
</programlisting>
</example>
</para>
<para>
- Patrz tak¿e: <function>dechex</function>.
+ Patrz tak¿e: <function>dechex</function>,
+ <function>bindec</function>,
+ <function>octdec</function> i
+ <function>base_convert</function>.
</para>
</refsect1>
</refentry>