phpで実行環境がwindowsかどうか判定するコード Posted on 2017年9月28日 | by whitebox if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') { }