LMSouq
php-dev Open

How to check if a string starts with a specified string?

AN
Andrew
1 month ago
3 views
Problem Description
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';

AI-Generated Solution

Powered by LMSouq AI · GPT-4.1-mini

✓ Solution Ready
Analyzing problem and generating solution…
Was this solution helpful?
Back to Knowledge Base