In languages like Java, overloading can be used in this way:
void test($foo, $bar){}
int test($foo){}
Then if you called test() with 2 arguments e.g test($x, $y);, the first function would be called. If you passed only 1 argument e.g test($x);, the 2nd function would be called.
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..
 
     
     
     
    