Dynamic function calls in PHP
<p>Is it possible to have dynamic function calls in PHP? I don't know if I am calling it the right name, but my example hopefully will explain what I want.</p>

<pre><code>&lt;?
    function image_filename(){
        global $the_image;
        return return $the_image-&gt;filename;
    }
    function image_anchor(){
        global $the_image;
        return getAnchor($the_image-&gt;id);
    }
    // is there a way to make a function that will do something like this:
    // I know it's possible using a class and __call, but is it possible for a general case
    function image_REQUEST(){
        global $the_image;
        $args = func_get_args();
        switch(REQUEST){
            case "filename":
                return $the_image-&gt;filename;
            break;
            case "anchor":
                return getAnchor($the_image-&gt;id);
            break;
        }
    }
?&gt;
</code></pre>

<p>Clarification:</p>

<p>I know about variable functions, and <code>call_user_func</code>. These are not what I am looking for. Basically, I don't want to define <code>image_filename</code> or <code>image_anchor</code>, but have them defined when they are called.</p>
