for something that simple you can just use [man]strstr[/man] or [man]strpos[/man] ereg is for regular expression matching of certain patterns that dont contain the same data every time. if you are searching for a constant string or character, use one of the above functions, as they are much easier and faster.