Update possible return values (false vs null), info from Pierre

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@217111 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Philip Olson 2006-07-26 19:39:14 +00:00
parent 9514b66252
commit a21c7cfaaa
3 changed files with 11 additions and 10 deletions

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.2 $ -->
<!-- $Revision: 1.3 $ -->
<!-- Generated by xml_proto.php v2.4. Found in /scripts directory of phpdoc. -->
<refentry id="function.filter-data">
<refnamediv>
@ -64,7 +64,7 @@
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
Returns filtered data or &null; if filter fails.
Returns the filtered data, or &false; if the filter fails.
</para>
</refsect1>
@ -85,7 +85,7 @@ var_dump(filter_data('example.com', FILTER_VALIDATE_URL, FILTER_FLAG_SCHEME_REQU
<screen>
<![CDATA[
string(15) "bob@example.com"
NULL
bool(false)
]]>
</screen>
</example>

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.2 $ -->
<!-- $Revision: 1.3 $ -->
<refentry id="function.input-get-args">
<refnamediv>
<refname>input_get_args</refname>
@ -65,8 +65,9 @@
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
An array containing the values of the requested variables on success, or
&false; if an error occurred.
An array containing the values of the requested variables on success, or &false;
on failure. An array value will be &false; if the filter fails, or &null; if
the variable is not set.
</para>
</refsect1>

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.2 $ -->
<!-- $Revision: 1.3 $ -->
<!-- Generated by xml_proto.php v2.4. Found in /scripts directory of phpdoc. -->
<refentry id="function.input-get">
<refnamediv>
@ -75,9 +75,9 @@
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
Value of the requested variable on success or &false; if variable has not
been found.
</para>
Value of the requested variable on success, &false; if the filter fails,
or &null; if the <parameter>variable_name</parameter> variable is not set.
</para>
</refsect1>
<refsect1 role="examples">