php_uname
Returns information about the operating system PHP was built on
Descriptionstringphp_unamephp_uname returns a string with a
description of the operating system PHP is built on. If you're just
wanting the name of the operating system, consider using the
PHP_OS constant.
Some php_uname examples
]]>
There are also some related
Predefined PHP
constants that may come in handy, for example:
A few OS related constant examples
]]>
See also php_version,
php_sapi_name, and
phpinfo.