mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
Fix mixed
return type declarations and parameters of Misc. Functions (#942)
This commit is contained in:
parent
268d48a184
commit
3c699fad2d
3 changed files with 11 additions and 6 deletions
|
@ -9,8 +9,8 @@
|
|||
<refsect1 role="description">
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>mixed</type><methodname>get_browser</methodname>
|
||||
<methodparam choice="opt"><type>string</type><parameter>user_agent</parameter></methodparam>
|
||||
<type class="union"><type>object</type><type>array</type><type>false</type></type><methodname>get_browser</methodname>
|
||||
<methodparam choice="opt"><type class="union"><type>string</type><type>null</type></type><parameter>user_agent</parameter><initializer>&null;</initializer></methodparam>
|
||||
<methodparam choice="opt"><type>bool</type><parameter>return_array</parameter><initializer>&false;</initializer></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
|
@ -65,6 +65,11 @@
|
|||
cookies are accepted is to set one with <function>setcookie</function>,
|
||||
reload, and check for the value.
|
||||
</para>
|
||||
<para>
|
||||
Returns &false; when no information can be retrieved, such as when the
|
||||
<link linkend="ini.browscap">browscap</link> configuration setting in
|
||||
&php.ini; has not been set.
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
<refsect1 role="examples">
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
<refsect1 role="description">
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>mixed</type><methodname>highlight_file</methodname>
|
||||
<type class="union"><type>string</type><type>bool</type></type><methodname>highlight_file</methodname>
|
||||
<methodparam><type>string</type><parameter>filename</parameter></methodparam>
|
||||
<methodparam choice="opt"><type>bool</type><parameter>return</parameter><initializer>&false;</initializer></methodparam>
|
||||
</methodsynopsis>
|
||||
|
|
|
@ -9,8 +9,8 @@
|
|||
<refsect1 role="description">
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>mixed</type><methodname>highlight_string</methodname>
|
||||
<methodparam><type>string</type><parameter>str</parameter></methodparam>
|
||||
<type class="union"><type>string</type><type>bool</type></type><methodname>highlight_string</methodname>
|
||||
<methodparam><type>string</type><parameter>string</parameter></methodparam>
|
||||
<methodparam choice="opt"><type>bool</type><parameter>return</parameter><initializer>&false;</initializer></methodparam>
|
||||
</methodsynopsis>
|
||||
<simpara>
|
||||
|
@ -24,7 +24,7 @@
|
|||
<para>
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term><parameter>str</parameter></term>
|
||||
<term><parameter>string</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
The PHP code to be highlighted. This should include the opening tag.
|
||||
|
|
Loading…
Reference in a new issue