function find_mobile_browser() { if(preg_match('/(iphone|ipad|ipod)/i', $_SERVER['HTTP_USER_AGENT'])) { return true; } else { return false; } }