filter_input_array

PHP 5 >= 5.2.0, PHP 7, PHP 8
filter_input_array - Gets external variables and optionally filters them
Manual
Code Examples

Example #1 A filter_input_array example

Result: array(6) { ["product_id"]=> string(17) "libgd%3Cscript%3E" ["component"]=> array(1) { [0]=> int(10) } ["version"]=> string(6) "2.0.33" ["doesnotexist"]=> NULL ["testscalar"]=> int(2) ["testarray"]=> array(4) { [0]=> int(2) [1]=> int(23) [2]=> int(10) [3]=> int(12) } }
PHP Version:


Function filter_input_array:

Data Filtering Functions

Most used PHP functions