Anton Heuschen wrote:
> I have a question regarding echo of a var/string in a loop on each instance
>
> A shortened example:
>
> Lets say I have an array of values (rather big), and then I loop
> through this array:
>
> for or foreach :
> {
> $value = $arrValAll[$i];
>
> echo "test".$i."--> ".$value;
> }
>
>
> When the script runs it will only start to echo values after certain
> period ... it does not echo immediately ... how can I force it start
> echo as soon as the first echo instance is done ? I thought ob_start
> does this but I have tried it and not getting what I want.
>
> Is there some other way/correct to do this?
call flush() after each echo to flush the buffer to the client.
That should work...
--
Peter Ford phone: 01580 893333
Developer fax: 01580 893399
Justcroft International Ltd., Staplehurst, Kent
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php