Could anybody tell me how to Search a string?

$somestring = "something that someone wrote";

How do I search for the word "someone"? Do I use the explode command?

thanks

    If you need only to know if "someone" is present you should try:

    eregi("someone",$somestring);
    This returns true or false depending if "someone" is present or not.

      Write a Reply...