Ahmed Ahmed - 1 year ago 80
PHP Question

PHP loop X amount of times

I have a string called

which dynamically gets a value from 1 to 7. I want to create a loop of
for however many times the value of
is. Any idea how I can do this?

Answer Source
for ($k = 0 ; $k < $columns; $k++){ echo '<td></td>'; }
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download