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?
BBKOriginally posted by BigBadKev
Hi all,
Can I ask why this isn't in PHP5?
<!-- m --><a class="postlink" href="http://www.phpbuilder.com/board/showthread.php?s=&threadid=10278930&highlight=overloading">http://www.phpbuilder.com/board/showthr ... verloading</a><!-- m -->
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. gettype and the other variable-handling functions, and func_get_args and the other function-handling functions.Thanks Weedpacket, lets hope it comes along in PHP6...
BBK
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?
BBKOriginally posted by BigBadKev
Hi all,
Can I ask why this isn't in PHP5?
<!-- m --><a class="postlink" href="http://www.phpbuilder.com/board/showthread.php?s=&threadid=10278930&highlight=overloading">http://www.phpbuilder.com/board/showthr ... verloading</a><!-- m -->
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. gettype and the other variable-handling functions, and func_get_args and the other function-handling functions.Thanks Weedpacket, lets hope it comes along in PHP6...
BBK