Created
January 4, 2012 09:43
-
-
Save geenkaas/1559338 to your computer and use it in GitHub Desktop.
PHP iPad detection
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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