Posts: 2
Location: Austria, Vienna
|
the problem: (using: PHP Version 4.2.1)
the function get_browser fills $b with a Zero value.
I´ve loaded a brand new browscap.ini file on my system
and tested it with phpinfo(). Everything seems quite ok
but the code below just returns
$str = 0:
array-key + string':'
Tx 4 help
- Code -----------------------------------------------
function list_array ($array) {
while (list ($key, $value) = each ($array)) {
$str .= "$key: $value";
$str .= "<br>";
}
return $str;
}
$b = get_browser();
if(!empty($b))
echo list_array ((array) $b);
- Output ---------------------------------------------
0:
|