svn: /phpdoc/en/trunk/reference/strings/functions/ chr.xml

From: Date: Sun, 03 Jul 2016 17:23:12 +0000
Subject: svn: /phpdoc/en/trunk/reference/strings/functions/ chr.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-14280@lists.php.net to get a copy of this message
cmb Sun, 03 Jul 2016 17:23:12 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=339548 Log: Fix documentation according to http://news.php.net/php.doc.cvs/14277 Changed paths: U phpdoc/en/trunk/reference/strings/functions/chr.xml Modified: phpdoc/en/trunk/reference/strings/functions/chr.xml =================================================================== --- phpdoc/en/trunk/reference/strings/functions/chr.xml 2016-07-03 16:54:52 UTC (rev 339547) +++ phpdoc/en/trunk/reference/strings/functions/chr.xml 2016-07-03 17:23:12 UTC (rev 339548) @@ -29,9 +29,20 @@ <term><parameter>ascii</parameter></term> <listitem> <para> - A number which is bitwise and'ed with 255 to retrieve the extended ASCII - code. + The extended ASCII code. </para> + <para> + Values outside the valid range (0..255) will be bitwise and'ed with 255, + what is equivalent to the following algorithm: + <programlisting role="php"> +<![CDATA[ +while ($ascii < 0) { + $ascii += 256; +} +$ascii %= 256; +]]> + </programlisting> + </para> </listitem> </varlistentry> </variablelist>

« previous php.doc.cvs (#14280) next »