View Single Post
Old 12-19-2007, 03:01 PM   #3 (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

Quote:
Originally Posted by bdm View Post
I do believe that you would need a second loop which would wrap your if statement.

And I'm not positive about $i's scope, but I don't think you can call $i outside of your for loop.
Correct.
He must create another loop inside his if statement
Tanax is offline  
Reply With Quote