Hi List
Sorry for this basic one but my brains gone to sleep and I can t see it.
--- Problem example ----
$vocals = array(
"name" => array('Jonny Flash', 'Bill Banger', 'Sarah Jane'),
"skill" => array('87', '77', 93),
"fee" => array('22000', '18500', '39000')
);
$i =0;
foreach($vocals as $val){
$rows .= "
<tr>
<td>$val[name][$i]</td><td>$val[skill][$i]</td><td>$val[fee][$i]</td>
</tr>
";
$i++;
}
echo $rows;
--- End ---
I get and output of [0][0][0][1][1][1][2][2][2] why ?
Thanks for any help
Dave C (of for a coffee and dreaming of bedtime) :-)
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.645 / Virus Database: 413 - Release Date: 28/03/2004
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php