z has higher ASCII value than A.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@144749 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
LEE Yun-young 2003-11-22 19:31:43 +00:00
parent 60cc18115f
commit aa2fffaf00

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.4 $ -->
<!-- $Revision: 1.5 $ -->
<!-- splitted from ./en/functions/strings.xml, last change in rev 1.2 -->
<refentry id="function.addcslashes">
<refnamediv>
@ -29,8 +29,8 @@
predefined escape sequences.
</para>
<para>
<parameter>charlist</parameter> like "\0..\31", which would
escape all characters with ASCII code between 0 and 31.
<parameter>charlist</parameter> like "\0..\37", which would
escape all characters with ASCII code between 0 and 37.
<example>
<title><function>addcslashes</function> example</title>
<programlisting role="php">
@ -59,7 +59,7 @@ echo addcslashes('foo[ ]', 'A..z');
]]>
</programlisting>
</informalexample>
Also, if the first character in a range has a lower ASCII value
Also, if the first character in a range has a higher ASCII value
than the second character in the range, no range will be
constructed. Only the start, end and period characters will be
escaped. Use the <function>ord</function> function to find the