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.
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.
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
ASKER
With my question using the information can you show me an example?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
;)
This looks so intimidating. I'm having trouble understanding it. I know I'm very basic.
This looks so intimidating. I'm having trouble understanding it. I know I'm very basic.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
That was it thank you all for being so informative!