If you're going to downvote say why in the comment so I can fix a mistake if there is one. To my knowledge, this is a better method to call than the accepted answer since it is recursive and will work on sub-arrays. If it's not, I'd like to know why.
You can use array_walk_recursive to call a function for each value in an array:
function walk_function(&$value) {
$value = some_function($value);
}
array_walk_recursive($_GET, 'walk_function');
array_walk_recursive($_POST, 'walk_function');
http://php.net/manual/en/function.array-walk-recursive.php
This has an advantage over array_map in that it is recursive and will call the function for arrays within the array. For example, if you submit checkboxes or multi-select there will be sub-arrays that may need the same processing done on them.
E_BAAAAD.