Skip to content

Instantly share code, notes, and snippets.

@geenkaas
Created January 4, 2012 09:43
Show Gist options
  • Save geenkaas/1559338 to your computer and use it in GitHub Desktop.
Save geenkaas/1559338 to your computer and use it in GitHub Desktop.
PHP iPad detection
<?php
$isiPad = (strpos($_SERVER['HTTP_USER_AGENT'],'iPad') !== false) ? true : false;
if ($isiPad) { ?>
// You are an iPad
<?php } else { ?>
// You are not an iPad
<?php };
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment