I have a Web Application which is browser compatible made in php and HTML5. I have a certain requirement when a client browse the site from Ipad I want to display different banner.
<?php $ua = strtolower($_SERVER['HTTP_USER_AGENT']);
if(stripos($ua,'android') !== false) { // && stripos($ua,'mobile') !== false) {
$android = '1';
}
if(stripos($ua,'iPhone') !== false || stripos($ua,'iPod') !== false || strstr($ua,'iPhone') || strstr($ua,'iPod') ) {
$iPhone = '1';
}
?>
This condition is working for android mobile and other devices but not for Ipad. Does anyone have idea how to detect Ipad device in php.