vrana           Thu Feb 26 09:03:14 2004 EDT

  Modified files:              
    /phpdoc/en/reference/math/functions hexdec.xml 
  Log:
  hexdec ignores non-hexadecimal characters
  
http://cvs.php.net/diff.php/phpdoc/en/reference/math/functions/hexdec.xml?r1=1.6&r2=1.7&ty=u
Index: phpdoc/en/reference/math/functions/hexdec.xml
diff -u phpdoc/en/reference/math/functions/hexdec.xml:1.6 
phpdoc/en/reference/math/functions/hexdec.xml:1.7
--- phpdoc/en/reference/math/functions/hexdec.xml:1.6   Mon Dec 15 11:51:58 2003
+++ phpdoc/en/reference/math/functions/hexdec.xml       Thu Feb 26 09:03:13 2004
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.6 $ -->
+<!-- $Revision: 1.7 $ -->
 <!-- splitted from ./en/functions/math.xml, last change in rev 1.16 -->
   <refentry id="function.hexdec">
    <refnamediv>
@@ -20,9 +20,8 @@
      7fffffff or 2147483647 in decimal.
     </para>
     <para>
-     <function>hexdec</function> will replace of any non-hexadecimal 
-     characters it encounters by <literal>0</literal>. This way, all
-     left zeros are ignored, but right zeros will be valued.
+     <function>hexdec</function> will ignore any non-hexadecimal 
+     characters it encounters.
      <example>
       <title><function>hexdec</function> example</title>
       <programlisting role="php">
@@ -32,9 +31,8 @@
 var_dump(hexdec("ee"));
 // both print "int(238)"
 
-var_dump(hexdec("that"));
-var_dump(hexdec("a0"));
-// both print "int(160)"
+var_dump(hexdec("that")); // print "int(10)"
+var_dump(hexdec("a0")); // print "int(160)"
 ?>
 ]]>
       </programlisting>

Reply via email to