>After experimenting with various methods of mobile device┬ádetection, I’ve eventually come up with what I think is a quick and easy solution which can be done in just three lines of code. $mobile = 0; $devices = array(‘iPhone’, ‘Android’, ‘Windows Phone’, ‘iPod’, ‘webOS’, ‘Symbian’, ‘BlackBerry’); foreach($devices as $device) if (strstr($ua, $device) == true) $mobile = […]