Re: getting values from objects
| From: | Jason Wong | Date: | Tue, 01 Apr 2003 20:10:03 +0000 |
| Subject: | Re: getting values from objects | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-141867@lists.php.net to get a copy of this message | ||
On Wednesday 02 April 2003 03:58, Charles Kline wrote:
> $res_pform->getSubmitValue("investigator5");
>
> returns an array, how do I get to the individual values in that array
> without first setting it to a variable like:
>
> $myvar = $res_pform->getSubmitValue("investigator5");
>
> echo $myvar['field'];
You can try:
list($field1, $field2, ...) = $res_pform->getSubmitValue("investigator5");
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
e-credibility: the non-guaranteeable likelihood that the electronic data
you're seeing is genuine rather than somebody's made-up crap.
- Karl Lehenbauer
*/