PHP: How to check if a string starts with a specified string?
<p>I'm trying to check if a string starts with <code>http</code>. How can I do this check?</p>

<pre><code>$string1 = 'google.com';
$string2 = 'http://www.google.com';
</code></pre>
