Re: String format problem

From: Date: Wed, 31 Aug 2005 13:32:43 +0000
Subject: Re: String format problem
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-221645@lists.php.net to get a copy of this message
On 8/31/05, Ahmed Abdel-Aliem <me2resh@gmail.com> wrote: > 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"; Don't use double quotes if you don't want escape sequences to be expanded. $Text = 'D:\AppServ\www\intranet\admin\store\nodirectory\sub'; $Replace = 'D:\AppServ\www\intranet\admin\store'; $with = 'http://localhost/bank/admin/store'; -robin

« previous php.general (#221645) next »