php ftell() function
Translation results:
英[tel] 美[tɛl]
vt.Tell; tell; say; identify; instruct
vt.& vi.distinguish, identify; tell, instruct; reveal; guarantee
vi. Leak, report; (color, sound, etc.) display; identify
n. [Archaeology] (a platform-shaped mound formed by the accumulation of ancient village ruins); [Dialect] speak words; conversation; rumors
Third person singular: tells Plural: tells Present participle: telling Past tense: told Past participle: told
php ftell() functionsyntax
Function: Open the current position in the file.
Syntax: ftell(file)
Parameters:
Parameter | Description |
file | Required. Specifies the open file to be checked. |
Note: The file pointer file must be valid and must point to a file successfully opened through fopen() or popen().
php ftell() functionexample
<?php $file = fopen("./test.txt","r"); // 输出当前位置 echo ftell($file); ?>