PHP Script to download a webpage's source code and search for a specific string
<p>I need help crafting a PHP code that accomplishes the following:</p>

<ol>
<li>Access a website (www.example.com)</li>
<li>Download its source code into a string variable</li>
<li><p>Search this specific string for a specific content such as</p>

<p><code>&lt;div class="news" title="news alert"&gt;Click to get news alert&lt;/div&gt;</code></p></li>
</ol>

<p>Basically I need to search the source code for <code>title="news alert"</code></p>

<p>Thank you all,</p>
