So, I've been diving into PHP lately and came across something called method overloading. I'm trying to understand how it works in PHP. As far as my understanding goes, method overloading allows us to have multiple functions with the same name but different parameters within a class. Is that correct?
I want to know if PHP supports method overloading and if it does, how does it work? Can someone please explain this to me in a bit more detail? If possible, it would be great if you could provide some code examples to illustrate the concept.
Thanks in advance!