You are here: Re: Question, search string for specified text. Thank you « All PHP « IT news, forums, messages
Re: Question, search string for specified text. Thank you

Posted by pangea33 on 03/20/07 02:48

On Mar 19, 9:19 pm, rarevideoexcha...@gmail.com wrote:
> Hi, I have $string = "LONG STRING OF STUFF....."
>
> How do I run a search on the $string for something like "FOOD", and if
> it exists, any case upper/lower, if FoOd exists in $string it results
> a 1 or 0 if not. Can someone please help me with?

You need to use the stristr function which is a case-insensitive
version of strstr, and will allow you to find a needle in a haystack.

http://us3.php.net/stristr

 

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

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