I have a function that is effectively a replacement for print, and I want to call it without parentheses, just like calling print.
# Replace
print $foo, $bar, "\n";
# with
myprint $foo, $bar, "\n";
In Perl, you can create subroutines with parameter templates and it allows exactly this behavior if you define a subroutine as
sub myprint(@) { ... }
Anything similar in PHP?