|
Posted by Rik on 08/26/07 02:15
On Sun, 26 Aug 2007 03:49:10 +0200, <encepif@gmail.com> wrote:
> I think this is the right command., could someone please show me how
> to replace instances of a quote like this " with its html version -
> ". I am mixed up with the escaping, etc. Thank you :-)
>
> ereg_replace( " " ," '",$fixedstring; )
Use the PCRE funtions if you can.
In this case, better yet:
str_replace('"','"',$string);
No meed to use regular expressions for something like this.
--
Rik Wasmus
[Back to original message]
|