View Single Post
Old 11-08-2008, 11:46 PM   #2 (permalink)
Tanax
The Prestige
Upcoming Programmer Inquisitive 
 
Tanax's Avatar
 
Join Date: Sep 2007
Location: Sweden, Stockholm
Posts: 1,080
Thanks: 115
Tanax is on a distinguished road
Default

This is perfectly valid, except that you forgot the ";" marks:
php Code:
foreach ($key as $value) {
      if ($value == 0) {
          $variableone++;
      } elseif {$value == 1) {
               $variabletwo++; }
}
__________________
Tanax is offline  
Reply With Quote