Re: find a word in a string

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Richard Kurth wrote:
is the a php function to find a word in a string and report back that it was found


Did you even look at the string section of the php manual?

http://us3.php.net/manual/en/ref.strings.php

Start here, it will get you all the information you are wanting.

you have strstr() or strpos() (both case-sensitive) use stristr() and stripos() if you are looking to be case insensitive. You could even use substr_count().

You have a number of options.

--
Jim Lucas

   "Some men are born to greatness, some achieve greatness,
       and some have greatness thrust upon them."

Twelfth Night, Act II, Scene V
    by William Shakespeare


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux