Page MenuHomeDevCentral

CurrentOS.php
No OneTemporary

CurrentOS.php

<?php
declare(strict_types=1);
namespace Keruald\OmniTools\OS;
class CurrentOS {
public static function isWindows () : bool {
return PHP_OS === 'CYGWIN' || self::isPureWindows();
}
public static function isPureWindows () : bool {
return strtoupper(substr(PHP_OS, 0, 3)) === 'WIN';
}
}

File Metadata

Mime Type
text/x-php
Expires
Fri, Feb 28, 21:39 (1 d, 11 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2436538
Default Alt Text
CurrentOS.php (322 B)

Event Timeline