Ron,
You probably want strstr(). or stristr().
Just as a usability recommendation on you code below, please don't restrict your pages
to IE only.. This would be better:
if (!strstr($HTTP_USER_AGENT,"MSIE 5.5") {
print "Please note this page has functionality designed for IE5.5";
}
Users of
http://php.net/ereg
"Ron" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> How would I compare to variables where I would want one variable to equal
> only part or some of the other variable?
> Here is the code
>
> if ($HTTP_USER_AGENT !== "%MSIE 5.5%") {
> pr
2 matches
Mail list logo