reference/misc/functions/get-browser.xml
3c699fad2dd94ee926ba04bdaf79e6f14b5b728b
...
...
@@ -9,9 +9,9 @@
9
9
<refsect1 role="description">
10
10
&reftitle.description;
11
11
<methodsynopsis>
12
-
<type>mixed</type><methodname>get_browser</methodname>
13
-
<methodparam choice="opt"><type>string</type><parameter>user_agent</parameter></methodparam>
14
-
<methodparam choice="opt"><type>bool</type><parameter>return_array</parameter><initializer>false</initializer></methodparam>
12
+
<type class="union"><type>object</type><type>array</type><type>false</type></type><methodname>get_browser</methodname>
13
+
<methodparam choice="opt"><type class="union"><type>string</type><type>null</type></type><parameter>user_agent</parameter><initializer>&null;</initializer></methodparam>
14
+
<methodparam choice="opt"><type>bool</type><parameter>return_array</parameter><initializer>&false;</initializer></methodparam>
15
15
</methodsynopsis>
16
16
<para>
17
17
Attempts to determine the capabilities of the user's browser, by looking
...
...
@@ -65,6 +65,11 @@
65
65
cookies are accepted is to set one with <function>setcookie</function>,
66
66
reload, and check for the value.
67
67
</para>
68
+
<para>
69
+
Returns &false; when no information can be retrieved, such as when the
70
+
<link linkend="ini.browscap">browscap</link> configuration setting in
71
+
&php.ini; has not been set.
72
+
</para>
68
73
</refsect1>
69
74

70
75
<refsect1 role="examples">
71
76