RE: [PHP] back slashes

From: Date: Fri, 08 Jul 2005 19:48:10 +0000
Subject: RE: [PHP] back slashes
Groups: php.general 
Request: Send a blank email to php-general+get-218369@lists.php.net to get a copy of this message
[snip] Lets say I have a string: "c:\www\test" I want to insert it into a database, but what ends up getting inserted is: c:wwwtest I can not get php to double the back slashes no matter what I do! $string = str_replace("\\", "\\\\", $string); That is what I want to do, get all single '\' into double '\\'... Any suggestions? [/snip] http://www.php.net/addslashes

« previous php.general (#218369) next »