I wanted to do a function that looks like this function foo($array[], int a, int, b, int c, int d) but it does not work, so i am wondering if it is possible? is it?
PHP is not C. You don't have to type your variables. Just use:
function foo($array, $a, $b, $c, $d) {
}