On Friday 23 April 2004 12:30, T UmaShankari wrote:

>   I need to replace a character " with "\. Using php how to do this. i
> have given like this but it is giving parse error....
>
> $temps=str_replace('"','"\',$temp);
>
> Can anyone tell me how to do this ?

Try:

  $temps = str_replace('"','"\\',$temp);

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
I represent a sardine!!
*/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to