You are here: Re: How do I use wildcards when searching in array? « PHP Programming Language « IT news, forums, messages
Re: How do I use wildcards when searching in array?

Posted by Chung Leong on 08/11/06 00:32

Chuck Anderson wrote:
> "Tip: Do not use preg_match() if you only want to check if one string is
> contained in another string. Use strpos() or strstr() instead as they
> will be faster."

But looping through the array and calling a function on each element
will certainly be slower than calling preg_grep() once.

 

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

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