Doc #65789 [Com]: addcslashes "predefined escape sequences"

From: Date: Tue, 01 Oct 2013 03:35:23 +0000
Subject: Doc #65789 [Com]: addcslashes "predefined escape sequences"
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-10339@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=65789&edit=1 ID: 65789 Comment by: gabri dot ns at gmail dot com Reported by: jakub dot lopuszanski at nasza-klasa dot pl Summary: addcslashes "predefined escape sequences" Status: Open Type: Documentation Problem Package: Documentation problem PHP Version: Irrelevant Block user comment: N Private report: N New Comment: "these" refers to sequence from current and previous sentences. but indeed it is really confusing. my proposal is to change it to: --------- Be careful if you choose to escape characters 0, a, b, f, n, r, t and v. They will be converted to \0 (NULL), \a (bell), \b (backspace), \f (form feed), \n (newline), \r (carriage return), \t (tab) and \v (vertical tab). In PHP, *only* \0, \r, \n, \f, \v and \t are predefined escape sequences, while in C all of these are predefined escape sequences. --------- i think this paragrahp is mean to compare addslashes and add'c'slashes. Previous Comments: ------------------------------------------------------------------------ [2013-09-30 11:54:12] jakub dot lopuszanski at nasza-klasa dot pl Description: ------------ The english doc http://php.net/manual/en/function.addcslashes.php contains a cryptic sentence: "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." I am not native speaker, but I double checked and the substring "are predefined escape sequences" occurs twice in this sentence, making it hard to spot the difference between PHP and C (if any?) --- From manual page: http://www.php.net/function.addcslashes --- ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=65789&edit=1

« previous php.doc.bugs (#10339) next »