PHP - File Handling
Identify the error in this PHP code snippet:
$file = fopen('data.txt', 'r');
fwrite($file, 'Test');
fclose($file);$file = fopen('data.txt', 'r');
fwrite($file, 'Test');
fclose($file);15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions