我echo
在它停止运行之前和之后放置了一个。文件file1.txt
已写入,但未返回最终echo
确认。
<?php
$fh = fopen("file1.txt", 'w') or die("Failed to create file");
$text = <<<_END
Line 1
Line 2
Line 3
_END;
fwrite($fh, $text) or die("Could not write to file");
echo "This shows up in my browser";
$fclose($fh);
echo "This doesn't";
?>