PHP code example of webignition / php-ie-detector
1. Go to this page and download the library: Download webignition/php-ie-detector library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
webignition / php-ie-detector example snippets
use webignition\IEDetector\IEDetector;
$ie6UserAgent = 'Mozilla/4.0 (MSIE 6.0; Windows NT 5.0)';
if (UserAgentDetector::isIE6()) {
// ...
}