Cal functions of same name from different files
<p>For my site, i intend on having several add-ons. At the moment i am able to get what plugins are required by the user, but i am unsure of how to include them.</p>

<p>I have structured my directories such that the plugins are all in a directory called <code>plugins</code>, and then each plugin is within a directory under that, and then each plugins directory has an <code>init.php</code> file that i want to call. With the build array of the scanned dir as such:</p>

<p><code>Array ( [2] =&gt; forums [3] =&gt; mesages [4] =&gt; profile [5] =&gt; clock)</code></p>

<p>And the corresponding directories array becoming:</p>

<pre><code>Array (
[2] =&gt; plugins/forums/init.php
[3] =&gt; plugins/mesages/init.php
[4] =&gt; plugins/profile/init.php
[5] =&gt; plugins/something/init.php
)
</code></pre>

<p>My problem/question is how do i call these <code>init.php</code>'s functions. I if i were to do a <code>foreach</code> through the array and somehow <code>require()</code> them, then simply calling a function from <code>init.php</code> could be from any of the plugins.</p>

<p>I have considered having the functions named like <code>clock_init()</code> but i would like to avoid that if possible. Any suggestions for my predicament?</p>
