' . '' . $name . '? '; if (is_array($value)) { formatArray($value); } else if (is_bool($value)) { formatBoolean($value); } else { $output .= $value; } $output .= ''; return $output; } // Initialize DeviceAtlas include 'deviceatlas/Mobi/Mtld/DA/Api.php'; $tree = Mobi_Mtld_DA_Api::getTreeFromFile("deviceatlas/20091028.json"); // Get the user-agent making the HTTP request. This value is used in property lookups $userAgent = $_SERVER['HTTP_USER_AGENT']; // Get all DeviceAtlas properties for the device. $props = Mobi_Mtld_DA_Api::getProperties($tree, $userAgent); // Show the UA, whether the request originates from a mobile device, and a few browser characteristics ?>

DeviceAtlas Device Characteristics

Click here to try the DeviceAtlas switcher.