Maybe my query is something trivial but still I can not find an answer.
What I want to get isq php, print the results once you have finished each process and do not wait until the entire script is loaded.
The request is being sent in Ajax (with the JQuery API) but the process is done in php.
Hypothetically, in php it would have a loop like the following:
for($i=0; $i<100; $i++){
echo $i.'<br/>';
}
but I do not want to wait until the loop prints 100 results together, if not in real time it prints every result. I know there is a function to do this (I remember seeing it in a tutorial some time ago) but I can not find anything on the web