I am aware of array_walk() and array_map(). However when using the former like so (on an old project) it failed
array_walk()
array_map()
array_walk($_POST,
I know the OP asked to call a function, however in the cases where you do not really need to call a function you can define an anonymous one:
$ids = [1,2,3]; array_walk($ids,function(&$id){$id += 1000;});