PHP get all function arguments as $key => $value array?
<pre><code>&lt;?php
function register_template(){
    print_r(func_get_args());
    # the result was an array ( [0] =&gt; my template [1] =&gt; screenshot.png [2] =&gt; nice template .. ) 

}

register_template(     # unkown number of arguments
    $name = "my template",
    $screenshot = "screenshot.png",
    $description = "nice template .. "
)
?&gt;
</code></pre>

<p>BUT , I want the result array as $key => $value form , $key represents the parameter name. </p>
