What line of code would i use to see if the string "Windows" was in the following string
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.0.3705)
Thanks
u would want to use preg_match(), like this:
preg_match("/\bWindows\b/i", $your_string);
Overkill. strpos($your_string,'Windows')!==false would do the trick (are you really worried about word boundaries or case?)