Last active
April 19, 2016 03:08
-
-
Save lyndell/04b5b4e6f398be58c9d69cc905166224 to your computer and use it in GitHub Desktop.
print the useragent string and split it by slashes
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 | |
header('Content-Type: text/plain'); | |
$browser = $_SERVER['HTTP_USER_AGENT']; | |
echo $browser . "\n\n"; | |
$browserArray = split('/', $browser); | |
print_r($browserArray) . "\n\n"; | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment