11-08-2008, 11:46 PM
|
#2 (permalink)
|
|
The Prestige
Join Date: Sep 2007
Location: Sweden, Stockholm
Posts: 1,080
Thanks: 115
|
This is perfectly valid, except that you forgot the ";" marks:
php Code:
foreach ($key as $value) { if ($value == 0) { $variableone++; } elseif {$value == 1) { $variabletwo++; } }
__________________
|
|
|
|