Re: [PHP] Array assistance

2004-07-27 Thread Matt M.
> Ten separate arrays with an array at 0 that has the data I'm after. > This is where I'm getting stuck. How can I get to the keys that are > either 'mc' or 'truefalse' and sum them? foreach my man http://us2.php.net/foreach foreach ($_SESSION['arans'] as $arans) { $truefalse += $arans['truefals

Re: [PHP] Array assistance

2004-07-27 Thread Jason Davidson
I would simply build the array more specifically, so that it doesnt include things you dont want. Jason On Tue, 27 Jul 2004 16:20:02 -0500, Alex Hogan <[EMAIL PROTECTED]> wrote: > Hi All, > > I have a page where I'm collecting answers from a series of questions. > The questions are entered into t

[PHP] Array assistance

2004-07-27 Thread Alex Hogan
Hi All, I have a page where I'm collecting answers from a series of questions. The questions are entered into the array one at a time so I can keep track of paging. $arans = array($_POST); $_SESSION['arans'][$pageid] = $arans; Then I want to check the sum of the array for scoring purposes