Re: trying to do too much with functions?

From: Date: Thu, 02 Sep 2004 16:08:12 +0000
Subject: Re: trying to do too much with functions?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-195590@lists.php.net to get a copy of this message
Justin French wrote:
I have a few functions with way too many parameters in them, or functions which have a non-obvious order of parameters which I constantly have to refer to as I'm working. Since I'm using PHP as my templating language (none smarty here!) as well as the programming language. So I've been looking for some alternatives...
hey you forgot C :-) now that java has also adapted a vargs look a like i guess it's high time for PHP to do the same. When faced with the find of situation that you are seem to face what I do is create a class and pass it along as a single parameter. -- Raditha Dissanayake. ------------------------------------------------------------------------ http://www.radinks.com/sftp/ | http://www.raditha.com/megaupload Lean and mean Secure FTP applet with | Mega Upload - PHP file uploader Graphical User Inteface. Just 128 KB | with progress bar.

« previous php.general (#195590) next »