What's the easiest way to retrieve the contents of a webpage via PHP?
<p>I want to write a function to retrieve the contents of a webpage so it works like:</p>

<pre><code>$url = "example.com";
$pageContent = RetrievePageContent($url);
</code></pre>

<p>What would be the easiest way to do this?</p>

<p>Thanks in advance for your help!</p>
