Re: Function arguments
| From: | jabber@raditha.com | Date: | Fri, 15 Aug 2003 16:14:40 +0000 |
| Subject: | Re: Function arguments | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-159711@lists.php.net to get a copy of this message | ||
Hello,
If you are worried about this issue your best option is to switch to an object oriented approach.
all the best
Hardik Doshi wrote:
Hi Group, I have a question on overloaded function. What is the best way to pass the arguments so it is easy to maintain in future if function behaviour changes by adding/removing one or more arguments? Currently i am passing arguments in array. But i think it is not the clean way to do it and another approach i am using is functionName(arg1, arg2='', arg3='') but here again i think it is not easy to maintain. Please let me know if you guys have other options or improved version of above options. Thanks Hardik __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com-- Raditha Dissanayake ------------------------------------------------------------- http://www.radinks.com/sftp/ Lean and mean Secure FTP applet with Graphical User Inteface. just 150 Kilo Bytes