You signed in with another tab or window.Reloadto refresh your session.You signed out in another tab or window.Reloadto refresh your session.You switched accounts on another tab or window.Reloadto refresh your session.Dismiss alert
<function>php_uname</function>The description of the operating system running PHP is returned.
This and<function>phpinfo</function>The same string is output at the top.
If you only want to get the name of the operating system.Consider using constants<constant>PHP_OS</constant>, but please note that this constant will include the PHP build (<emphasis>built</emphasis>).
</para>
<para>
On some old UNIX platforms, it may not be able to detect the information of the current system, and then it will revert to the system information when building PHP.
This only happens when your uname() function library does not exist or cannot be run.
</para>
</refsect1>
<refsect1role="parameters">
&reftitle.parameters;
<para>
<variablelist>
<varlistentry>
<term><parameter>mode</parameter></term>
<listitem>
<para>
<parameter>mode</parameter>It is a single character used to define what information to return:
<itemizedlist>
<listitem>
<simpara>
<literal>'a'</literal>: This is the default.Include Sequence<literal>"s n r v m"</literal>All modes in.
</simpara>
</listitem>
<listitem>
<simpara>
<literal>'s'</literal>: Operating system name.For example:
<literal>FreeBSD</literal>。
</simpara>
</listitem>
<listitem>
<simpara>
<literal>'n'</literal>: hostname.For example:
<literal>localhost.example.com</literal>。
</simpara>
</listitem>
<listitem>
<simpara>
<literal>'r'</literal>: Version name, for example:
<literal>5.1.2-RELEASE</literal>。
</simpara>
</listitem>
<listitem>
<simpara>
<literal>'v'</literal>: Version information.Operating systems are very different.