Is it possible to add a parameter to a function arraya_walk?

Hello!
There is a function
$p = array_flip($permisArray);
array_walk($pagesArray,function ($v,$k) use (&$s,$p){
 if (!isset($p[$v])) {
 $s[] = $v;}
});

Is it possible to add parameters like this, or what?
array_walk($pagesArray,function ($v,$k) use (&$s, $p = array_flip($permisArray)){
 if (!isset($p[$v])) {
 $s[] = $v;
}
});

Below array_flip($permisArray) went as a parameter to functions?
March 25th 20 at 13:46
1 answer
March 25th 20 at 13:48
Solution
array_walk($pagesArray, function($v, $k, $p) use(&$s) {
 if (!isset($p[$v])) {
 $s[] = $v;
}
}, array_flip($permisArray));

Find more questions by tags PHP