I have scenario in my current work that requires overloading a method i.e having a method with the same name but different parameter requirement. And since i have done this in java, i was wondering if php have something like that.
Asked
Active
Viewed 132 times
1 Answers
2
Unfortunately, not based on separate function declarations and parameters passed (like you see in Java). See here for a thorough explanation and alternatives:
-
In future, if this is the same question, please flag it as a duplicate instead of posting an answer that simply points there. – BoltClock May 20 '13 at 18:47