Coming from C++ background ;) How can I overload PHP functions?
One function definition if there are any arguments, and another if there are no arguments? Is it
PHP does not support overloading for now. Hope this will be implemented in the other versions like other programming languages.
Checkout this library, This will allow you to use PHP Overloading in terms of closures. https://github.com/Sahil-Gulati/Overloading