[Sync-EN] Add examples for filter_var_array() and filter_input_array() - #1790
Open
lacatoire wants to merge 1 commit into
Open
[Sync-EN] Add examples for filter_var_array() and filter_input_array()#1790lacatoire wants to merge 1 commit into
lacatoire wants to merge 1 commit into
Conversation
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
reference/filter/functions/filter-input-array.xmlandreference/filter/functions/filter-var-array.xmlwith php/doc-en#5267 and php/doc-en#5699.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.EN-Revision bumped to 85264ba268a398c4b90c1948839d54ce688dd5cd on both files.
Fixes: #1694