PHP - File Handling
Identify the error in this PHP code snippet that tries to read the first 10 bytes of a file:
$fp = fopen('file.txt', 'r');
$content = fread(10, $fp);
echo $content;