function _browscap_boolean in Browscap 5
File
- ./
browscap.module, line 262 - Replacement for PHP's get_browser() function
Code
function _browscap_boolean($value) {
switch ($value) {
case 'TRUE':
case 'true':
return 1;
case 'FALSE':
case 'false':
case 'default':
default:
return 0;
}
}