PHP » GoLang |
login |
register |
about
|
GoLang filter_var_array
request it (598)
GoLang replacement for PHP's filter_var_array
[edit | history]
filter_var_array(PHP 5 >= 5.2.0, PHP 7) filter_var_array — Gets multiple variables and optionally filters them DescriptionThis function is useful for retrieving many values without repetitively calling filter_var(). Parameters
Return Values
An array containing the values of the requested variables on success, or Examples
Example #1 A filter_var_array() example
<?phpThe 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
See Also
|
more
Most requested
more
Last requests
|