Home >Backend Development >PHP Tutorial >html - php脚本执行问题研究

html - php脚本执行问题研究

WBOY
WBOYOriginal
2016-06-06 20:13:25975browse

<code><?php for($i=0;$i<100;$i++){
        echo $i;
    }
?>
</code>

在HTML文件中用ajax接收数据,是不断的接收到0,1,2,3,4,5....

还是一次性接收到12345....

回复内容:

<code><?php for($i=0;$i<100;$i++){
        echo $i;
    }
?>
</code>

在HTML文件中用ajax接收数据,是不断的接收到0,1,2,3,4,5....

还是一次性接收到12345....

一次性接受到所有的输出,除非你用socket。。

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn