Ok, Ereg/Eregi returns the first matching string. How do I find any other
matching strings? Or is there a better way of doing this?
$eregi_str = "(\; |\()Win[ \.a-z0-9]*(\)|\;)";
if( eregi( $eregi_str, $browser_string, $arrstring ) )
$browser_os = $arrstring;
This works fine except on some browsers which like to return Windows
multiple times such as this -
"Mozilla/5.0 (Windows; U; Win98; en-US;........"
Knowing that it's Windows doesn't help, I need to know it's Win98, etc.
Thanks for any help :)
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php