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