In this PHP tutorial section, we will explain you how to learn about the PHP ftell() function and its example
In this PHP tutorial section, we will explain you how to learn about the PHP ftell() function and its example
Syntax
int ftell(file_handle)
Code
<?php
$file=fopen("roseindia.txt","r");
echo ftell($file);
fseek($file,40);
echo "<br>".ftell($file);
?>
Output
0
40