public function isIos() { if(isset($_SERVER['HTTP_USER_AGENT'])){ $agent = strtolower($_SERVER['HTTP_USER_AGENT']); if(strpos($agent, 'iphone')||strpos($agent, 'ipad')) return true; } return false; }
public function isIos() { if(isset($_SERVER['HTTP_USER_AGENT'])){ $agent = strtolower($_SERVER['HTTP_USER_AGENT']); if(strpos($agent, 'iphone')||strpos($agent, 'ipad')) return true; } return false; }