Created
August 22, 2025 19:47
-
-
Save aklump/ad1e47b63f7a98e4f966b2bfddcd297f to your computer and use it in GitHub Desktop.
Detect if Windows
This file contains hidden or 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
| (defined('PHP_OS_FAMILY') && PHP_OS_FAMILY === 'Windows') | |
| || strtoupper(substr(PHP_OS, 0, 3)) === 'WIN'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment