This code will detect mobile name by default browser.
This code detect mobile model number while u using operamini.
Can Anyone Plz Combine Both Code as One ?
Like......
if From Default Browser, output will :
Browser: n97
Or
if User From Opera Mini, Output will..
Browser: Opera/9.80
Opera Phone: N97
Plz Help.. Thank You
PHP Code:
<?php
$mobile = strtok(getenv('HTTP_USER_AGENT'), "/");
echo $mobile;
?>
PHP Code:
<?
$mobile = strtok(getenv('HTTP_X_OPERAMINI_PHONE_UA'), "/");
echo $mobile;
?>
Like......
if From Default Browser, output will :
Browser: n97
Or
if User From Opera Mini, Output will..
Browser: Opera/9.80
Opera Phone: N97
Plz Help.. Thank You
Comment