You are here: Re: How do I see if one string is found within another string? « PHP Programming Language « IT news, forums, messages
Re: How do I see if one string is found within another string?

Posted by Carl on 08/13/05 04:00

googlegroups@budget-edi.co.uk wrote:
> Hi, I wonder if anyone can help?
>
> How do I see if one string is found within another string?
> or how many instances of one string, is found within another.
>
> ie.
>
> a="Sheree smells of poo"
> b="smells"
>
> I'd like a function that would return 1, (for true, or that the word
> smells, if found once)
>
> PHP is ace. There must be a simple way of doing this. I mean, its got
> loads of useless functions that noones ever going to use. Im sure if
> PHP has a built-in function to convert hebrew, then Im sure it can do
> this. Any ideas?
>
> Cheers
> Phil.
>
Phil,

http://www.php.net/manual/en/function.strpos.php

Carl.

 

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

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