svn: /phpdoc/en/trunk/reference/strings/functions/ addcslashes.xml

From: Date: Fri, 12 Aug 2011 13:09:45 +0000
Subject: svn: /phpdoc/en/trunk/reference/strings/functions/ addcslashes.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-8603@lists.php.net to get a copy of this message
vrana Fri, 12 Aug 2011 13:09:45 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=314834 Log: Whitespace Changed paths: U phpdoc/en/trunk/reference/strings/functions/addcslashes.xml Modified: phpdoc/en/trunk/reference/strings/functions/addcslashes.xml =================================================================== --- phpdoc/en/trunk/reference/strings/functions/addcslashes.xml 2011-08-12 13:09:20 UTC (rev 314833) +++ phpdoc/en/trunk/reference/strings/functions/addcslashes.xml 2011-08-12 13:09:45 UTC (rev 314834) @@ -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 @@ // ... 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>

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