If Chrome or Firefox browser (PHP)
<p>I'm using the below code to check if visitor is using Chrome Browser:</p>

<pre><code>&lt;?php
function is_chrome()
{
return(eregi("chrome", $_SERVER['HTTP_USER_AGENT']));
}
if(is_chrome())
{
echo 'You are using Google Chrome Browser.';
}
?&gt;
</code></pre>

<p>also</p>

<pre><code>&lt;?php
function is_firefox()
{
return(eregi("firefox", $_SERVER['HTTP_USER_AGENT']));
}
if(is_chrome())
{
echo 'You are using Firefox Browser.';
}
?&gt;
</code></pre>

<p>is working fine, but how can i combine or how to use "or" function, so to check if httpuseragent contains "chrome" or "firefox"?</p>

<p>Thanks</p>
