reference/network/functions/gethostname.xml
f33c301789a02f842a069ec72e7ef2f86179daf0
...
...
@@ -9,8 +9,8 @@
9
9
<refsect1 role="description">
10
10
&reftitle.description;
11
11
<methodsynopsis>
12
-
<type>string</type><methodname>gethostname</methodname>
13
-
<void />
12
+
<type class="union"><type>string</type><type>false</type></type><methodname>gethostname</methodname>
13
+
<void/>
14
14
</methodsynopsis>
15
15
<para>
16
16
<function>gethostname</function> gets the standard host name for
...
...
@@ -18,6 +18,11 @@
18
18
</para>
19
19
</refsect1>
20
20

21
+
<refsect1 role="parameters">
22
+
&reftitle.parameters;
23
+
&no.function.parameters;
24
+
</refsect1>
25
+

21
26
<refsect1 role="returnvalues">
22
27
&reftitle.returnvalues;
23
28
<para>
...
...
@@ -35,9 +40,6 @@
35
40
<![CDATA[
36
41
<?php
37
42
echo gethostname(); // may output e.g,: sandie
38
-

39
-
// Or, an option that also works before PHP 5.3
40
-
echo php_uname('n'); // may output e.g,: sandie
41
43
?>
42
44
]]>
43
45
</programlisting>
...
...
@@ -57,7 +59,6 @@ echo php_uname('n'); // may output e.g,: sandie
57
59
</refsect1>
58
60

59
61
</refentry>
60
-

61
62
<!-- Keep this comment at the end of the file
62
63
Local variables:
63
64
mode: sgml
64
65