We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c218ff commit b5d4e16Copy full SHA for b5d4e16
README.markdown
@@ -23,8 +23,6 @@ cases a much simpler method can be just as effective.
23
php-user-agent has the advantage of being compact and easy to extend.
24
It is performant as well, since it doesn't do any iteration or recursion.
25
26
-Tests, code and documentation in fast progress.
27
-
28
## Usage
29
30
// include the class
@@ -47,6 +45,7 @@ You can specify another user agent string:
47
45
48
46
// use another user agent string
49
$userAgent = new phpUserAgent('msnbot/2.0b (+http://search.msn.com/msnbot.htm)');
+ $userAgent->getBrowserName() // msnbot
50
51
// use current user agent string
52
$userAgent = new phpUserAgent($_SERVER['HTTP_USER_AGENT');
0 commit comments