Organizational Research By

Surprising Reserch Topic

Experts Most Trusted Topic


Question:PHP Function to check Android version from the user agent.


 


$version='2.2'//android version
if(strstr($_SERVER['HTTP_USER_AGENT'], 'Android')){
 
preg_match('/Android (\d+(?:\.\d+)+)[;)]/', $_SERVER['HTTP_USER_AGENT'], $matches);
 
return version_compare($matches[1], $version, '<=');
 
}

 


asked Sep 13, 2013 in Java Interview Questions by anonymous
edited Sep 12, 2013
0 votes
33 views



Related Hot Questions



Walkin Jobs Opening



Government Jobs Opening


...