svn: /phpdoc/en/trunk/language/types/ string.xml

From: Date: Wed, 06 Oct 2010 06:17:42 +0000
Subject: svn: /phpdoc/en/trunk/language/types/ string.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-7187@lists.php.net to get a copy of this message
aharvey Wed, 06 Oct 2010 06:17:42 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=304133 Log: 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". ;) Changed paths: U phpdoc/en/trunk/language/types/string.xml Modified: phpdoc/en/trunk/language/types/string.xml =================================================================== --- phpdoc/en/trunk/language/types/string.xml 2010-10-06 06:17:32 UTC (rev 304132) +++ phpdoc/en/trunk/language/types/string.xml 2010-10-06 06:17:42 UTC (rev 304133) @@ -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>

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