- preg_match: documentation ( source)
- explode: documentation ( source)
<?php
$data = 'Opera/9.80 (Linux armv7l) Presto/2.12.362 Version/12.11 VIZIO-DTV/1.60.38.0000 (Vizio, M401i-A3, wireless)';
//$data = 'Opera/9.80 (Linux armv7l) Presto/2.12.407 Version/12.51 , E65-C3-FHD/1.2.0-FHD (Vizio, E65-C3, Wireless)';
if( preg_match('/(-(DTV))\/([0-9]+.[0-9]+.[0-9]+.[0-9]+)/', $data, $matches) == 1 ) {
$version = explode('.', $matches[3]);
if ( (int)$version[1] >= 60 && (int)$version[2] >= 32) {
print false;
}
}