How to send cursor “home” in PHP

寵の児 提交于 2020-06-28 05:20:19

问题


I am using echo to display output to the browser window. I have a while loop calling a function that displays the values on a two-dimensional grid, essentially like a table. As things are, calculations are made, and the table is rendered line-by-line to the screen as those calculations are made.

However, if I update the table, showing changes caused by subsequent calculations, I have to reprint the entire table below the first. I would like to return the cursor to the top-left corner and print the update over the original, so that the table appears just to update itself at the time of (re-) calculation. Is this possible using PHP?

I have found various references to this general question, but none in the context of the browser. (With browsers, the term "cursor" is generally used to refer to the pointer.)

来源:https://stackoverflow.com/questions/61552841/how-to-send-cursor-home-in-php

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!