0

How can i get only mobile name?

Result like : your System is "Android" and Model is "Redmi 9s".

I try this :

require_once 'Mobile_Detect.php';
$user_agent=$_SERVER['HTTP_USER_AGENT']; 
$detect = new Mobile_Detect;
if($detect->isMobile()){
your System is "Android" and Model is $detect->devicename.
}

but Not work!

I use Mobile-Detect 2.8.37 and PHP7.3.

Thanks.

PCcloob.Ir
  • 59
  • 10
  • I think javascript is the tool for that job: https://stackoverflow.com/questions/21741841/detecting-ios-android-operating-system – Kinglish Jun 05 '21 at 06:40

0 Answers0