You are here: Re: Parsing and replacing in PHP « PHP Programming Language « IT news, forums, messages
Re: Parsing and replacing in PHP

Posted by bobzimuta on 03/22/06 04:07

Yeah, you would get errors since $strip_it contains the '/' characters.
They have special meaning for the preg functions. If you ever become
interested, learn all about regular expressions. They are very fun!

In order to just remove $strip_it from all the text, try the
str_replace function. It'll be faster, too.

$result = str_replace( $strip_it, '', $initial_html );

 

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

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