Link to home
Start Free TrialLog in
Avatar of austinfx
austinfx

asked on

while loop question

I need to run a a chunk of code for 50 times.

Then increment a variable by 50 in that code and run it again and each time add another 50 to the variable until I have run the code a total of 3500 times.
Avatar of Dave Baldwin
Dave Baldwin
Flag of United States of America image

Typically that is done with a 'for' loop because a 'for' is done by the count.  A 'while' can too but the logic for the count is part of the 'for' loop.  http://php.net/manual/en/control-structures.for.php
Avatar of austinfx
austinfx

ASKER

With my question using the information can you show me an example?
ASKER CERTIFIED SOLUTION
Avatar of Dave Baldwin
Dave Baldwin
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
;)
This looks so intimidating. I'm having trouble understanding it. I know I'm very basic.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
That was it thank you all for being so informative!