I know I can get the iOS version and can also know if user is using an iPod Touch, iPad or an iPhone by reading the browser agent via this code:
$_SERVER['HTTP_USER_AGENT'];
But, can I detect the specs of iOS device? Like if a user is using an iPhone, is it an iPhone 4S, iPhone 4, iPhone 3GS or iPhone 3G?.