I am trying to build up a script that gets the current percentage of the iteration of a loop.
I have :
you need to do ($total/$iterations) * $counter like this code:
$counter = 0; $total = 100; $iterations = count($key); foreach($key as value) { $counter++; $percentage = (($total/$iterations) * $counter)/100; }