PHP echo是否等待脚本的其余部分

Den*_*one 1 php echo

php的echo是否等待将数据发送到屏幕,直到脚本的其余部分完成?

所以,如果我有:

<?

echo "Hello World";

$xmlData = file_get_cotents("www.webpage.com");

        $myFile = "data_backup.xml";
        $fh = fopen($myFile, 'w') or die("can't open file");
        $stringData =  $xmlData;
        fwrite($fh, $stringData);
        fclose($fh);
?>
Run Code Online (Sandbox Code Playgroud)

那么上面的示例是什么来显示Hello World,直到url中的内容被重新获取并保存在本地?

Nea*_*eal 5

是的.除非你用数据刷新数据flush();