Reply to Re: ereg_replace syntax question, thank you :)

Your name:

Reply:


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 -
> &quot;. 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('"','&quot;',$string);

No meed to use regular expressions for something like this.
--
Rik Wasmus

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация