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
Function overloading, maybe - SOLVED
Moderator: General Moderators
- ReverendDexter
- Forum Contributor
- Posts: 193
- Joined: Tue May 29, 2007 1:26 pm
- Location: Chico, CA
Function overloading, maybe - SOLVED
Last edited by ReverendDexter on Mon Jun 25, 2007 6:03 pm, edited 1 time in total.
- ReverendDexter
- Forum Contributor
- Posts: 193
- Joined: Tue May 29, 2007 1:26 pm
- Location: Chico, CA