PHP - File Handling
What will be the output of the following PHP code?
$file = fopen('test.txt', 'r');
fseek($file, 3);
echo ftell($file);$file = fopen('test.txt', 'r');
fseek($file, 3);
echo ftell($file);fseek($file, 3); moves the pointer 3 bytes from the start (default SEEK_SET).ftell($file) returns current pointer position, which is 3.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions