Skip to content

Add examples for filter_var_array() and filter_input_array()#5267

Open
lacatoire wants to merge 1 commit intophp:masterfrom
lacatoire:docs/filter-array-examples
Open

Add examples for filter_var_array() and filter_input_array()#5267
lacatoire wants to merge 1 commit intophp:masterfrom
lacatoire:docs/filter-array-examples

Conversation

@lacatoire
Copy link
Contributor

Summary

  • Add 2 examples to filter_var_array(): applying a single filter to all values, and using
    FILTER_CALLBACK
  • Add 2 examples to filter_input_array(): filtering GET parameters (validation), and
    filtering POST data (sanitization with missing keys)

Fixes #4218

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Filter: Add examples for filter_var_array() and filter_input_array()

1 participant