You are here: Re: <? print .. DIV> + InnerHTML question, thank you « All PHP « IT news, forums, messages
Re: <? print .. DIV> + InnerHTML question, thank you

Posted by Steve on 08/27/07 02:46

"Gregor Kofler" <usenet@gregorkofler.at> wrote in message
news:96556$46d1954d$557f14a8$2321@news.inode.at...
| S�verin Richard meinte:
|
| > for single quote(') the right syntax may be:
| > ereg_replace( "'","\'",$someblog[0] )
| > or ereg_replace( "'","\\'",$someblog[0] )
| > or ereg_replace( "'","\\\'",$someblog[0] )
| >
| > try all of this.
|
| Now, that's what I call helpful...

man, there are a ton of prima donnas here! jesus christ!

| Anyway, since he's doing a lot of
| trying anyway, he should either stick to preg_replace()

i agree...it gives much better performance.

| if RegEx are
| required, since *this* is proper contemporary PHP.

"proper"?!!! wtf!

ummmm...ereg *IS* using regex. it's just a different processing engine.
"proper"...that's a laugh.

| However, in this case
| RegEx is complete overkill.

disagree completely.

| An ordinary str_replace() will do [1].

only if you're not used to writing regex. but to technically disagree, no,
str_replace won't easily take care of everything that should be checked.

 

Navigation:

[Reply to this 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

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