Title: Detect Operating System?
Last modified: August 22, 2016

---

# Detect Operating System?

 *  Resolved [wpsuperadmin22](https://wordpress.org/support/users/wpsuperadmin22/)
 * (@wpsuperadmin22)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/detect-operating-system/)
 * Can this plugin detect OS and details?
 * The browsercap native PHP addon is able to, and since the plugin uses this, I
   would think maybe its possible.
 *  Please let me know. Thank you.
 * [https://wordpress.org/plugins/php-browser-detection/](https://wordpress.org/plugins/php-browser-detection/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Mindshare Labs, Inc.](https://wordpress.org/support/users/mindshare/)
 * (@mindshare)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/detect-operating-system/#post-5294082)
 * Yes, so long as the data is in the browscap file you can use it, for example 
   you can use
    php_browser_info() to return an array of all the data and then do
   anything you like with it:
 *     ```
       php_browser_info() = Array
       (
           [browser_name] => Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.120 Safari/537.36
           [browser_name_regex] => ^mozilla/5\.0 \(.*mac os x 10_(\d).*\) applewebkit/.* \(khtml, like gecko\).*chrome/(\d)(\d)\..*safari/.*$
           [browser_name_pattern] => Mozilla/5.0 (*Mac OS X 10_9*) AppleWebKit/* (KHTML, like Gecko)*Chrome/37.*Safari/*
           [Parent] => Chrome 37.0
           [Platform] => MacOSX
           [Platform_Version] => 10.9
           [Win32] =>
           [Comment] => Chrome 37.0
           [Browser] => Chrome
           [Version] => 37.0
           [MajorVer] => 37
           [Frames] => 1
           [IFrames] => 1
           [Tables] => 1
           [Cookies] => 1
           [JavaScript] => 1
           [JavaApplets] => 1
           [CssVersion] => 3
           [MinorVer] => 0
           [Alpha] =>
           [Beta] =>
           [Win16] =>
           [Win64] =>
           [BackgroundSounds] =>
           [VBScript] =>
           [ActiveXControls] =>
           [isMobileDevice] =>
           [isTablet] =>
           [isSyndicationReader] =>
           [Crawler] =>
           [AolVersion] => 0
       )
       ```
   

Viewing 1 replies (of 1 total)

The topic ‘Detect Operating System?’ is closed to new replies.

 * ![](https://ps.w.org/php-browser-detection/assets/icon-256x256.png?rev=999338)
 * [PHP Browser Detection](https://wordpress.org/plugins/php-browser-detection/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/php-browser-detection/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/php-browser-detection/)
 * [Active Topics](https://wordpress.org/support/plugin/php-browser-detection/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/php-browser-detection/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/php-browser-detection/reviews/)

## Tags

 * [OS](https://wordpress.org/support/topic-tag/os/)

 * 1 reply
 * 2 participants
 * Last reply from: [Mindshare Labs, Inc.](https://wordpress.org/support/users/mindshare/)
 * Last activity: [11 years, 6 months ago](https://wordpress.org/support/topic/detect-operating-system/#post-5294082)
 * Status: resolved