Mobile Device Detection with PHP: iPhone, Android... | kevinleary.net

Using PHP to Detect iOS & Mobile Users

This basic mobile_user_agent_switch() function will allow you to use PHP to detect iOS and mobile device visitors using one of the following: Supported Devices iPhone iPad Android Blackberry The mobile_user_agent_switch() Function /* * Mobile device detection */ if( !function_exists(‘mobile_user_agent_switch’) ){ … Continue reading Using PHP to Detect iOS & Mobile Users