I could not figure out how to pass a variable number of variables into a function. I thought passing in an array and using the array keys for the variables names could repla
try this
foreach($parameters as $key => $value)