PHP: define functions with variable names
<p>I have an array of strings and I want to define functions with names being these strings. Is there a way to do that in PHP?</p>

<pre><code>$a = array("xxx", "yyy", "zzz");
</code></pre>

<p>How do I programmatically define <code>xxx()</code>, <code>yyy()</code>, and <code>zzz()</code>?</p>

<p>Many thanks</p>
