Skip to content

Instantly share code, notes, and snippets.

@Ahed91
Created June 19, 2018 11:37
Show Gist options
  • Save Ahed91/48ca7d9282fcceade0fa589b4cf8d553 to your computer and use it in GitHub Desktop.
Save Ahed91/48ca7d9282fcceade0fa589b4cf8d553 to your computer and use it in GitHub Desktop.
check ios Alamofire api
<?php
//Detect special conditions devices
$IOS = stripos($_SERVER['HTTP_USER_AGENT'],"iOS");
//do something with this information
if( $IOS ){
//browser reported as an iPhone/iPod touch -- do something here
} else {
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment