<?php
class dyn_class {
function __call($f_name, $args) {
echo "You called $f_name, # of params: ".count($args);
}
}
$test = new dyn_class();
$test->call_my_function();
$test->call_another_function(20);
?>