posted May 16, 2000 09:34 PM
Hello..
to find an specific block of text or word within the value of a variable you can try thislet's say we have the following:
code:
$browser = getenv("HTTP_USER_AGENT");
you can use preg_match() func. to search for "MSIE" within $browser, like this:
code:
preg_match("/MSIE/i", "$browser");
the "i" tells the script to match any instances, uppercase and lowercase etc...
(PHP Essentials book)i hope this is useful for yaaa
Mike
Linux,php3,MySQL newbie
ohh and by the way maybe you know the answer to the question a posted (below yours)
thank-Q