title: is PHP's file_get_contents memory and data efficient?
body: <p>I'm making a push notification server that gathers specific data from an external (third-party) html page, if I know the information I need is within the first e.g. 5000 characters, will PHP actually use less memory if I state a MAX_LENGTH? Or is the whole page loaded entirely into memory anyway? Additionally, is the entire html page downloaded or is the connection broken once the limit is hit? (and in turn saving data transfer costs)</p>
  
  <pre><code>$html = file_get_contents ("http://.....", false, null, -1, 5000);
  </code></pre>
  
  <p>thanks.</p>