Re: Array assistance
| From: | Matt M. | Date: | Tue, 27 Jul 2004 21:34:11 +0000 |
| Subject: | Re: Array assistance | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-192030@lists.php.net to get a copy of this message | ||
> 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['truefalse'];
$mc += $arans['mc'];
}