Skip to main content
Stack Overflow
  1. About
  2. For Teams

Return to Question

Post Timeline

replaced http://stackoverflow.com/ with https://stackoverflow.com/
Source Link
URL Rewriter Bot
URL Rewriter Bot

Possible Duplicate:
PHP startsWith() and endsWith() functions PHP startsWith() and endsWith() functions
Check if variable starts with ‘http’ 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.

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.

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.

insert duplicate link
Source Link

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.

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.

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.

Source Link
atomikpanda
  • 1.9k
  • 5
  • 35
  • 48

string has prefix PHP

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.

default

AltStyle によって変換されたページ (->オリジナル) /