php_uname

string php_uname(void) 

Obtains operating system information.

Returns:

Operating system information

Description:

Obtains information about the operating system on which PHP was built. It may display other information for the current platform, if PHP was built on a different platform. This is true if you installed PHP from a package, such as an RPM or a .deb package.

Version:

Existing since version 4.0.2

Example:

Display OS information
echo php_uname; 

Get PHP Functions Essential Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.