PHP - File Handling
You want to update the 10th byte in a file without reading the whole file. Which sequence of PHP functions correctly moves the pointer and writes a character 'X' at that position?
fseek($file, 9); moves pointer to 10th byte (index 9). fwrite($file, 'X'); writes 'X' at that position.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions