Whitespace

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@314834 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Jakub Vrana 2011-08-12 13:09:45 +00:00
parent be2667e0f5
commit fcd0e74390

View file

@ -42,12 +42,12 @@
with ASCII codes lower than 32 and higher than 126 converted to
octal representation.
</para>
<para>
When you define a sequence of characters in the charlist argument
make sure that you know what characters come between the
characters that you set as the start and end of the range.
<informalexample>
<programlisting role="php">
<para>
When you define a sequence of characters in the charlist argument
make sure that you know what characters come between the
characters that you set as the start and end of the range.
<informalexample>
<programlisting role="php">
<![CDATA[
<?php
echo addcslashes('foo[ ]', 'A..z');
@ -56,32 +56,32 @@ echo addcslashes('foo[ ]', 'A..z');
// ... but so will the [\]^_`
?>
]]>
</programlisting>
</informalexample>
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
ASCII value for a character.
<informalexample>
<programlisting role="php">
</programlisting>
</informalexample>
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
ASCII value for a character.
<informalexample>
<programlisting role="php">
<![CDATA[
<?php
echo addcslashes("zoo['.']", 'z..A');
// output: \zoo['\.']
?>
]]>
</programlisting>
</informalexample>
</para>
<para>
Be careful if you choose to escape characters 0, a, b, f, n, r,
t and v. They will be converted to \0, \a, \b, \f, \n, \r, \t
and \v.
In PHP \0 (NULL), \r (carriage return), \n (newline), \f (form feed),
\v (vertical tab) and \t (tab) are predefined escape sequences,
while in C all of these are predefined escape sequences.
</para>
</programlisting>
</informalexample>
</para>
<para>
Be careful if you choose to escape characters 0, a, b, f, n, r,
t and v. They will be converted to \0, \a, \b, \f, \n, \r, \t
and \v.
In PHP \0 (NULL), \r (carriage return), \n (newline), \f (form feed),
\v (vertical tab) and \t (tab) are predefined escape sequences,
while in C all of these are predefined escape sequences.
</para>
</listitem>
</varlistentry>
</variablelist>