You are here: Re: An Easy One for you all « All PHP « IT news, forums, messages
Re: An Easy One for you all

Posted by Tyno Gendo on 04/07/07 19:49

ZeldorBlat wrote:
> On Apr 7, 12:27 pm, Tyno Gendo <u...@example.com> wrote:
[snip]
> Why does everyone insist upon using regex's to do simple find/replace
> operations?
>
> str_replace("\n", " ", $someString);
>

Yes, you can also do str_replace as you suggest, its up to personal
preference really. Me personally, I've been seeing regex in projects at
work until they come out of my ears so regex is no problem, but
admittedly they were for much more complex matching and replacing ;-)

 

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

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