cvs: phpdoc /en/functions strings.xml

From: Date: Sat, 12 Jan 2002 23:32:01 +0000
Subject: cvs: phpdoc /en/functions strings.xml
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969341129@lists.php.net to get a copy of this message
irc-html Sat Jan 12 18:32:01 2002 EDT Modified files: /phpdoc/en/functions strings.xml Log: bug #14935: example for addcslashes Index: phpdoc/en/functions/strings.xml diff -u phpdoc/en/functions/strings.xml:1.152 phpdoc/en/functions/strings.xml:1.153 --- phpdoc/en/functions/strings.xml:1.152 Wed Jan 9 21:11:28 2002 +++ phpdoc/en/functions/strings.xml Sat Jan 12 18:32:00 2002 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.152 $ --> +<!-- $Revision: 1.153 $ --> <reference id="ref.strings"> <title>String functions</title> <titleabbrev>Strings</titleabbrev> @@ -67,9 +67,11 @@ <informalexample> <programlisting role="php"> <![CDATA[ -echo addcslashes('foo[]', 'A..z'); -// All upper and lower-case letters will be escaped -// ... but so will the [\]^_` +echo addcslashes('foo[ ]', 'A..z'); +// output: \f\o\o\[ \] +// All upper and lower-case letters will be escaped +// ... but so will the [\]^_` and any tabs, line +// feeds, carriage returns, etc. ]]> </programlisting> </informalexample> @@ -82,10 +84,7 @@ <programlisting role="php"> <![CDATA[ echo addcslashes("zoo['.']", 'z..A'); -/* output: -\zoo['\.'] - -*/ +// output: \zoo['\.'] ]]> </programlisting> </informalexample>

« previous php.doc (#969341129) next »