Re: Retrieving values from array on a class
| From: | AR | Date: | Sat, 14 Oct 2006 15:28:57 +0000 |
| Subject: | Re: Retrieving values from array on a class | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-243139@lists.php.net to get a copy of this message | ||
Hello,
>> I have this class named "returnConfigParams" that returns an array
>> called "$values" through a function called "getMySQLParams()".
>>
>> My question is how to retrieve the values of the array from the file
>> that calls the class.
>>
>> I have:
>>
>> $params_file = New returnConfigParams;
>> $params_file->getMySQLParams();
>> print($params_file[0]);
>
> var_dump($params_file->getMySQLParams());
>
> You said the method returns the data, right?
Yes, it returns an array called $values.
My problem is how to access the individual member of the array.
Thanks in advance.
Cheers,
AR