if (strpos($useragent, 'applewebkit') !== false AND $is['mac']) { preg_match('#applewebkit/(\d+)#', $useragent, $regs); $is['webkit'] = $regs[1];