[PHP] preg_replace()str_replace() escaping a double-quote problem

2002-02-01 Thread Anton Kolev
Any idea why when I print the value of $text, I get a backslash in front of the result. Any of the following: $text=preg_replace(/\/, quot;, $text); $text=preg_replace(/\/, A, $text); str_replace() also does the same :( -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] Escaping a double-quote problem

2002-02-01 Thread Anton Kolev
Any idea why when I print the value of $text, I get a backslash in front of the result? $text=preg_replace(/\/, quot;, $text); $text=preg_replace(/\/, A, $text); $text=str_replace(\, A, $text); Contrary: $text=preg_replace(//, amp;, $text); works quite well. cheerz -- PHP General

[PHP] Re: Escaping a double-quote problem

2002-02-01 Thread Anton Kolev
PROTECTED]">news:[EMAIL PROTECTED]... Look up addslashes and stripslashes in the manual. Normally you'd use addslashes going into the db, and stripslashes coming out for display. HTH Joe :) Anton Kolev [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]..