I can’t remember how I did this before, but there had been a way that I used a while loop and it returned the result after each loop, not after the entire array was looped through.
I am now using for each though, but I assume the same practice should be able to be applied to for each.
I have a multiple photo uploader that I want the photos to return as soon as each one is finished, not when all of them are done.
Are you searching for ob_flush ?
Will output the contents of the output buffer and can be controled in your for each array.