PHP function overloading

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 possible in PHP? Or should I use if else to check if there are any parameters passed from $_GET and POST?? and relate them?

9 Answers
9

Leave a Comment