Pre Exam Test Practice (SSC | Banking | IAS | GATE | State Level | CLAT | Railways | Insurance | Teaching Exams | NDA | Defence | IES |State Exam )

Organizational Research By

Surprising Reserch Topic

boostr.in questions - 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
22 views



Related Hot Questions



Government Jobs Opening


...