Re: [PHP] Problem with foreatch()

2005-01-16 Thread James Kaufman
On Sun, Jan 16, 2005 at 03:20:26PM +, Ben Edwards (lists) wrote: > I have the following Code: > > foreatch( $_POST["mtype"] as $akey => $avalue ) { > echo "$akey, $avalue"; > } > > When I run it I get: > > Parse error: parse error, unexpected T_AS > in /var/www/mb/mb_estab_upd

[PHP] Problem with foreatch()

2005-01-16 Thread Ben Edwards (lists)
I have the following Code: foreatch( $_POST["mtype"] as $akey => $avalue ) { echo "$akey, $avalue"; } When I run it I get: Parse error: parse error, unexpected T_AS in /var/www/mb/mb_estab_update.php on line 58 58 is the line with the foreatch on it. However if I replace it with