摘要: 直接上代码: 根据PHP_OS系统常量判断 function get_os(){ return strstr(PHP_OS, 'WIN') ? 'windows':'linux'; } 或者 function get_os(){ if(PHP_OS == 'Linux'){ $os = 'linux 阅读全文
posted @ 2022-04-13 22:49 山上小和尚 阅读(173) 评论(0) 推荐(0) 编辑