Reply to Re: [PHP] strpos with array?

Your name:

Reply:


Posted by Marek Kilimajer on 05/10/05 14:29

Merlin wrote:
> Hi there,
>
> I am wondering if there is a function (I could not find) which does the
> same thing like strpos does, but with an array.
>
> For example:
>
> $replace = array("picture", "pics");
> $pos = strpos ($term, $replace);
> if ($pos !== false) {
> $term = str_replace($replace, "", $term);
> echo 'term without the word:'.$term;
> }
>
> This does of course not work since strpos does not take arrays.
>
> Thank you for any help,
>
> Merlin
>

http://www.php.net/array_search

[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

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