I’m trying to check if a string starts with http. How can I do this check?

$string1 = 'google.com';
$string2 = 'http://www.google.com';

5 s
5

Tags:

Leave a Reply

Your email address will not be published. Required fields are marked *