1
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 manua...