| feof() | ใช้ตรวจสอบว่า pointer ชี้ไปยังตำแหน่งสุดท้ายของไฟล์แล้วใช่หรือไม่ |
|---|
function:feof ( resource );
return type:boolean
content:ใช้ตรวจสอบว่า pointer ชี้ไปยังตำแหน่งสุดท้ายของไฟล์แล้วใช่หรือไม่
example:$fp = fopen ( "bamboo.txt", "r" ); if ( feof ( $fp ) ) { echo "empty file"; }