What is PHP function overloading for?
<p>In languages like Java, overloading can be used in this way:</p>

<pre><code>void test($foo, $bar){}
int test($foo){}
</code></pre>

<p>Then if you called <code>test()</code> with 2 arguments e.g <code>test($x, $y);</code>, the first function would be called. If you passed only 1 argument e.g <code>test($x);</code>, the 2nd function would be called.</p>

<p>From the manual it seems that php 5 does have overloading, but what is it for? I can't seem to understand the manual on this topic..</p>
