Updated the single quote paragraph to make it clearer and remove a special case

that isn't actually special. Initial rewording by Joey; my contribution is
mostly tinkering with punctuation and actually running "svn commit". ;)


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@304133 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Adam Harvey 2010-10-06 06:17:42 +00:00
parent ce8acb6d00
commit c846e224e5

View file

@ -61,10 +61,12 @@
<para>
To specify a literal single quote, escape it with a backslash
(<literal>\</literal>). To specify a literal backslash before a single
quote, or at the end of the <type>string</type>, double it
(<literal>\\</literal>). Note that attempting to escape any other character
will print the backslash too.
(<literal>\</literal>). To specify a literal backslash, double it
(<literal>\\</literal>). All other instances of backslash will be treated
as a literal backslash: this means that the other escape sequences you
might be used to, such as <literal>\r</literal> or <literal>\n</literal>,
will be output literally as specified rather than having any special
meaning.
</para>
<note>