Repository navigation
[Sync-En] filter: add examples and document the exceptions of the filter functions - #1790
Merged
Merged
Conversation
lacatoire
force-pushed
the
sync-en/1694
branch
from
October 22, 2026 08:38
0e398b1 to
28c3564
Compare
lacatoire
force-pushed
the
sync-en/1694
branch
from
November 8, 2026 16:25
28c3564 to
a69552a
Compare
lacatoire
force-pushed
the
sync-en/1694
branch
from
November 17, 2026 18:59
6a76bf4 to
7bdf042
Compare
…itles and wording
… add the result checking examples Translation of php/doc-en#6090 and php/doc-en#6011.
lacatoire
force-pushed
the
sync-en/1694
branch
from
November 18, 2026 08:32
0bb2c74 to
958eaca
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Syncs the five
reference/filter/functions/pagesfilter-input-array.xml,filter-var-array.xml,filter-var.xml,filter-input.xmlandfilter-has-var.xmlwith php/doc-en#5267, php/doc-en#5699, php/doc-en#6011 and php/doc-en#6090.filter_input_array():nullis returned when the input array is not populated, regardless ofFILTER_NULL_ON_FAILURE; missing entries arenullwhenadd_emptyis true and omitted when it is false, and unlikefilter_input()the flag does not change that; withFILTER_FORCE_ARRAYa failure value is wrapped in a one element array like any other result.xi:fallbackelements.filter_var_array():filter_input_array().FILTER_REQUIRE_ARRAYorFILTER_FORCE_ARRAYis used, so theFILTER_REQUIRE_SCALARflag in it only states the default explicitly.FILTER_CALLBACKexamples.optionsdescription: the key corresponds to a key in the input array, and'flags'specifies any flags that apply.Also removed the trailing
?>from the examples and aligned example titles and a few wordings with the glossary.php/doc-en#6090: the five pages gain an errors section and the 8.0.0 changelog rows for the
ValueErrorandTypeError, and, as of 8.5.0, theFilter\FilterFailedExceptionofFILTER_THROW_ON_FAILURE.php/doc-en#6011:
filter_var()gains the two examples on checking the result of validation.EN-Revision bumped to d5e14b9107cacb7d7257ebcf4beec48e0ea741bc on the five files.
Fixes: #1694
Fixes: #1997
Fixes: #2082