Function overloading, maybe - SOLVED
Posted: Mon Jun 25, 2007 4:42 pm
What I'd like to do is overload a function, but I'm not really sure what the PHPanese is for doing this. If I have a function foo($whatever), what is the proper way to make the function accept being called as foo($whatever) *and* foo($whatever, $parameter)?
I'm hoping there's another thread I can just be pointed to, but all I was finding was saying that PHP doesn't really do overloading. Am I trying to force a C++ concept onto a language that doesn't want it?
-Dex
I'm hoping there's another thread I can just be pointed to, but all I was finding was saying that PHP doesn't really do overloading. Am I trying to force a C++ concept onto a language that doesn't want it?
-Dex