<p>PHP5 has a "magic method" <code>__call()</code>that can be defined on any class that is invoked when an undefined method is called -- it is roughly equivalent to Ruby's <code>method_missing</code> or Perl's <code>AUTOLOAD</code>. Is it possible to do something like this in older versions of PHP?</p>

I recall using it, and a little bit of googling suggests that
```
```
function __call($method_name, $parameters, &$return)
{
  $return_value = "You called ${method_name}!";
}
```
```
as a member function will do the job.