Re: array encapsulate
| From: | Curt Zirzow | Date: | Fri, 12 Sep 2003 23:11:04 +0000 |
| Subject: | Re: array encapsulate | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-162483@lists.php.net to get a copy of this message | ||
On Fri, 12 Sep 2003 18:58:22 -0400, Bill <bill@billtron.com> wrote:
I'd like to do this, but it produces an error: if ($_POST{["detail"][11][116]} && !$_POST{["detailtext"][19][114]}) { so I'm left doing this if ($_POST["detail"][11][116] && !$_POST["detailtext"][19][114]) { How can I encapsulate the array so it is a multi-dimensional array and not just a string length?It is rather unclear what you mean, the first syntax is wrong and thus is why it produces an error. The second one is the proper way to access a multi-dimensional array. Curt