title: What is the difference between file_get_contents and fread
body: <p>What is the difference between</p>
  
  <pre><code>$contents = file_get_contents("folder/somefile.txt")
  </code></pre>
  
  <p>and</p>
  
  <pre><code>$handle = fopen("folder/somefile.txt", "r");
  $contents = fread($handle, filesize($filename));
  fclose($handle);
  </code></pre>
  
  <p>in terms of performance, file pointer handling and memory managing ?</p>
  
  <p>And is it true that file_get_contents uses <code>mmap</code> if OS allows it ?</p>