RE: [PHP] String format problem

From: Date: Wed, 31 Aug 2005 19:05:57 +0000
Subject: RE: [PHP] String format problem
Groups: php.general 
Request: Send a blank email to php-general+get-221663@lists.php.net to get a copy of this message
> hi > i have a problem when i am formating a string > the problem is it converts the \n in the string to a new line > here is the code > > <? > $Text = "D:\AppServ\www\intranet\admin\store\nodirectory\sub"; > $Replace = "D:\AppServ\www\intranet\admin\store"; > $with = "http://localhost/bank/admin/store"; Use single quotes instead of double quotes: $Text = 'D:\AppServ\www\intranet\admin\store\nodirectory\sub'; $Replace = 'D:\AppServ\www\intranet\admin\store'; $with = 'http://localhost/bank/admin/store'; JM

« previous php.general (#221663) next »