Hi all,
Can I ask why this isn't in PHP5? and is there a way around this so that you can have overloading constructers and methods? and without trying to be question hog can this be done in PHP4?
BBK
Originally posted by BigBadKev Hi all, Can I ask why this isn't in PHP5?
http://www.phpbuilder.com/board/showthread.php?s=&threadid=10278930&highlight=overloading
and is there a way around this so that you can have overloading constructers and methods?
http://www.phpbuilder.com/board/showthread.php?s=&postid=10559744&highlight=overload%2A#post10559744
and without trying to be question hog can this be done in PHP4?
Yes. Do your own type-checking in the method. [man]gettype[/man] and the other variable-handling functions, and [man]func_get_args[/man] and the other function-handling functions.
Thanks Weedpacket, lets hope it comes along in PHP6...