|
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]
|