PHP » GoLang |
login |
register |
about
|
GoLang filter_input_array
request it (417)
GoLang replacement for PHP's filter_input_array
[edit | history]
filter_input_array(PHP 5 >= 5.2.0, PHP 7) filter_input_array — Gets external variables and optionally filters them DescriptionThis function is useful for retrieving many values without repetitively calling filter_input(). Parameters
Return Values
An array containing the values of the requested variables on success, or Examples
Example #1 A filter_input_array() example
<?php The above example will output: array(6) { ["product_id"]=> string(17) "libgd%3Cscript%3E" ["component"]=> array(1) { [0]=> int(10) } ["versions"]=> string(6) "2.0.33" ["doesnotexist"]=> NULL ["testscalar"]=> bool(false) ["testarray"]=> array(1) { [0]=> int(2) } } Changelog
Notes
See Also
|
more
Recently updated
more
Most requested
more
Last requests
|