(PHP 4, PHP 5, PHP 7)
ftell — 锟斤拷锟斤拷锟侥硷拷指锟斤拷锟�/写锟斤拷位锟斤拷
$handle
) : int
锟斤拷锟斤拷锟斤拷 handle
指锟斤拷锟斤拷锟侥硷拷指锟斤拷锟轿伙拷茫锟揭诧拷锟斤拷锟斤拷募锟斤拷锟斤拷械锟狡拷锟斤拷锟斤拷锟�
Returns the position of the file pointer referenced by
handle
as an integer; i.e., its offset into the file stream.
锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟� FALSE
锟斤拷
Example #1 ftell() 锟斤拷锟斤拷
<?php
// opens a file and read some data
$fp = fopen("/etc/passwd", "r");
$data = fgets($fp, 12);
// where are we ?
echo ftell($fp); // 11
fclose($fp);
?>