note 84248 added to function.stripcslashes

From: Date: Sat, 05 Jul 2008 02:53:22 +0000
Subject: note 84248 added to function.stripcslashes
Groups: php.notes 
Request: Send a blank email to php-notes+get-141187@lists.php.net to get a copy of this message
you might want to do a double stripslashes to completely remove 3 consecutive slashes $stripped = 'this is a string with three\\\ slashes'; $stripped = stripslahses($stripped); would output: 'this is a string with three\ slashes' $stripped = 'this is a string with three\\\ slashes'; $stripped = stripslahses(stripslashes($stripped)); would output: 'this is a string with three slashes' ---- Server IP: 64.71.164.2 Probable Submitter: 222.127.192.67 ---- Manual Page -- http://www.php.net/manual/en/function.stripcslashes.php Edit -- https://master.php.net/note/edit/84248 Del: integrated -- https://master.php.net/note/delete/84248/integrated Del: useless -- https://master.php.net/note/delete/84248/useless Del: bad code -- https://master.php.net/note/delete/84248/bad+code Del: spam -- https://master.php.net/note/delete/84248/spam Del: non-english -- https://master.php.net/note/delete/84248/non-english Del: in docs -- https://master.php.net/note/delete/84248/in+docs Del: other reasons-- https://master.php.net/note/delete/84248 Reject -- https://master.php.net/note/reject/84248 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#141187) next »