function:fseek ( resource, new_position, flags );
return type:int, void
content:ใช้เปลี่ยนตำแหน่งของ pointer ไปยังตำแหน่งที่กำหนด
โดยจะคืนค่า true ถ้าเปลี่ยนสำเร็จ และจะคืนค่า false ถ้าเปลี่ยนไม่สำเร็จ
example:$fp = fopen ( "bamboo.txt", "r" );
if ( fseek ( $fp, -10, SEEK_END ) )
{
echo "seek success";
}
comment:ถ้า flags = SEEK_SET ให้ pointer อยู่ในตำแหน่งที่กำหนด ( default )
ถ้า flags = SEEK_CUR ให้ pointer อยู่ในตำแหน่งปัจจุบัน บวกกับ ตำแหน่งที่กำหนด
ถ้า flags = SEEK_END ให้ pointer อยู่ในตำแหน่ง EOF ลบกับตำแหน่งที่กำหนด