note 87577 added to function.addslashes

From: Date: Thu, 11 Dec 2008 10:44:40 +0000
Subject: note 87577 added to function.addslashes
Groups: php.notes 
Request: Send a blank email to php-notes+get-148022@lists.php.net to get a copy of this message
Be careful on whether you use double or single quotes when creating the string to be escaped: $test = 'This is one line\r\nand this is another\r\nand this line has\ta tab'; echo $test; echo "\r\n\r\n"; echo addslashes($test); $test = "This is one line\r\nand this is another\r\nand this line has\ta tab"; echo $test; echo "\r\n\r\n"; echo addslashes($test); ---- Server IP: 203.88.112.190 Probable Submitter: 121.45.22.93 ---- Manual Page -- http://www.php.net/manual/en/function.addslashes.php Edit -- https://master.php.net/note/edit/87577 Del: integrated -- https://master.php.net/note/delete/87577/integrated Del: useless -- https://master.php.net/note/delete/87577/useless Del: bad code -- https://master.php.net/note/delete/87577/bad+code Del: spam -- https://master.php.net/note/delete/87577/spam Del: non-english -- https://master.php.net/note/delete/87577/non-english Del: in docs -- https://master.php.net/note/delete/87577/in+docs Del: other reasons-- https://master.php.net/note/delete/87577 Reject -- https://master.php.net/note/reject/87577 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#148022) next »