From a21c7cfaaa511b16fed23c60fd638850395534ab Mon Sep 17 00:00:00 2001 From: Philip Olson Date: Wed, 26 Jul 2006 19:39:14 +0000 Subject: [PATCH] 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 --- reference/filter/functions/filter-data.xml | 6 +++--- reference/filter/functions/input-get-args.xml | 7 ++++--- reference/filter/functions/input-get.xml | 8 ++++---- 3 files changed, 11 insertions(+), 10 deletions(-) diff --git a/reference/filter/functions/filter-data.xml b/reference/filter/functions/filter-data.xml index 9ed3744f22..c84540f234 100644 --- a/reference/filter/functions/filter-data.xml +++ b/reference/filter/functions/filter-data.xml @@ -1,5 +1,5 @@ - + @@ -64,7 +64,7 @@ &reftitle.returnvalues; - Returns filtered data or &null; if filter fails. + Returns the filtered data, or &false; if the filter fails. @@ -85,7 +85,7 @@ var_dump(filter_data('example.com', FILTER_VALIDATE_URL, FILTER_FLAG_SCHEME_REQU diff --git a/reference/filter/functions/input-get-args.xml b/reference/filter/functions/input-get-args.xml index 3145713987..3dedcb0d2f 100644 --- a/reference/filter/functions/input-get-args.xml +++ b/reference/filter/functions/input-get-args.xml @@ -1,5 +1,5 @@ - + input_get_args @@ -65,8 +65,9 @@ &reftitle.returnvalues; - 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. diff --git a/reference/filter/functions/input-get.xml b/reference/filter/functions/input-get.xml index b5e888b6d6..40ec676e27 100644 --- a/reference/filter/functions/input-get.xml +++ b/reference/filter/functions/input-get.xml @@ -1,5 +1,5 @@ - + @@ -75,9 +75,9 @@ &reftitle.returnvalues; - Value of the requested variable on success or &false; if variable has not - been found. - + Value of the requested variable on success, &false; if the filter fails, + or &null; if the variable_name variable is not set. +