test1.txt文件內(nèi)容如下:this is my first day come in island.this is my first day come in island.this is my first day come in island.this is my first day come in island.我的PHP文件——filesystem.php文件內(nèi)容如下:$file = fopen("test1.txt","r");echo "<br>";while(!feof($file)){ echo fgetc($file); if(fgetc($file)==""){ echo "<br>"; }}fclose($file);在瀏覽器的輸出如下:ti sm is a oei sad ti sm is a oei sad ti sm is a oei sad ti sm is a oei sad 請(qǐng)問(wèn)這是什么情況?
為什么中間加判斷語(yǔ)句的時(shí)候會(huì)輸出意想不到的輸出?
拉風(fēng)的咖菲貓
2023-03-20 17:13:00