From c846e224e51e2b306e2cc6158b23b295e9c525c8 Mon Sep 17 00:00:00 2001 From: Adam Harvey Date: Wed, 6 Oct 2010 06:17:42 +0000 Subject: [PATCH] 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 --- language/types/string.xml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/language/types/string.xml b/language/types/string.xml index 7e62730b6a..29845edd4b 100644 --- a/language/types/string.xml +++ b/language/types/string.xml @@ -61,10 +61,12 @@ To specify a literal single quote, escape it with a backslash - (\). To specify a literal backslash before a single - quote, or at the end of the string, double it - (\\). Note that attempting to escape any other character - will print the backslash too. + (\). To specify a literal backslash, double it + (\\). 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 \r or \n, + will be output literally as specified rather than having any special + meaning.