php foreach loop displaying result only when the loop is completed?

Salmane S

New member
Hi there,
I have an array i need to loop though and echo each element.
the way I want it to work is as follows:
I would like the code to echo each element of the array as it gets to it. ( it will be more complicated than that since I will execute an operation on the array)
I want to monitor the result for each element and the only way I can think of is to echo the result for each one. trouble is when i use foreach loop what happens is that all the results are printed at once when the script is done executing.
thank you in advance for your help.
 
Back
Top