Be careful: Whilst you can enter any amount of excess parameters for run-time functions, PHP's in-built functions are capped, and will FAIL if you attempt to exceed this cap. For example:
<?php
implode(",",$arr); implode(",",$arr,$set_var); implode(",",$arr,$unset_var); implode(",",$arr,NULL); myimplode(",",$arr,$set_var); ?>
The function calls that cause a 'Wrong parameter count' warning return NULL.
I noticed this when trying to use $callback(...) with the values $callback = "imagecopyresampled"; and $callback = "imagecopy"; which seemed like a good idea at the time - the two functions have almost identical parameter lists, but imagecopy() would fail because it has two parameters less.