note 21578 modified in function.addcslashes by vrana

From: Date: Tue, 17 Aug 2004 13:56:30 +0000
Subject: note 21578 modified in function.addcslashes by vrana
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-79689@lists.php.net to get a copy of this message
I have found the following to be much more appropriate code example: <?php $escaped = addcslashes($not_escaped, "\0..\37!@\@\177..\377"); ?> This will protect original, innocent backslashes from stripcslashes. --was-- I have found the following to be much more appropriate code example: $escaped = addcslashes($not_escaped, "\0..\37!@\@\177..\377"); This will protect original, innocent backslashes from stripcslashes. http://php.net/manual/en/function.addcslashes.php

« previous php.notes (#79689) next »