Name

php_uname

Synopsis

string php_uname(string mode)

Returns a string describing the operating system under which PHP is running. The mode parameter is a single character used to control what is returned. The possible values are:

a (default)

All modes included (s, n, r, v, m)

s

Name of the operating system

n

The hostname

r

Release name

v

Version information

m

Machine type

Get Programming PHP, 3rd Edition 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.