Re: Valid class
| From: | Jason k Larson | Date: | Fri, 18 Apr 2003 07:28:26 +0000 |
| Subject: | Re: Valid class | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-144383@lists.php.net to get a copy of this message | ||
I think it's a perfectly logical step forward.
Passing one variable (especially by reference) is bound to be significaltly easier to read and deal with.
my two cents :P
--
der Ritter
aka: Jason k Larson
Sparky Kopetzky wrote:
Question: Is you define an associative array that is empty and you initialize all of the elements of the array, would this be a good item to make into a class that can be called from anywhere?? I have a large number of attributes for a project and want to pass a single parameter (the associative array/class) to and fro without having a large number of parameters for each function. I would rather have the function extract what it need from the class/array. Robin Kopetzky