Possible Duplicate:
PHP startsWith() and endsWith() functions
Check if variable starts with ‘http’
How make an if-statement that if $mystring has the prefix "http://" then {do something}.
I've done this in objective-c like this:
if([mynsstring hasPrefix:@"http://"])
{
//Do something...
}
I don't know how to do this in PHP. Thanks for your help in advance.