You are here: Re: find characters eregi() « PHP Language « IT news, forums, messages
Re: find characters eregi()

Posted by misiek on 05/04/07 18:46

>
> So you want to remove certain characters from a string? I've said it
> before and I'll say it again: why do people insist upon using regular
> expressions to do things that str_* functions can handle in a much
> easier and faster way? Not only will it run faster, but you'll save
> yourself from exactly the kind of headaches you're experiencing.
>
> $chars = array('&', "'", '/', '_', '-');
> $output = str_replace($chars, '', $string);
>

ok to by zadzialalo, a jak odnosnie if statement
Najpierw chcem sprawdzic czy w stringu jest taki znak a pozniej go usunac ?

 

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

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