The ftell() function returns the current position of the read/write file.
Returns the position of the file pointer If an error occurs, returns false.
Syntax
ftell(file)
Example
$file = fopen("content.php", "r");
$content = fgets($file, 12);
echo ftell($file);
fclose($file);
Output
11
Copyright ©2022 coderraj.com. All Rights Reserved.