Page 1 of 1

String Function Question

Posted: Thu Jul 08, 2004 12:44 pm
by mattmcb
Let's say I have a string http://www.website.com and I want to find out if the string contains an http:// or not. If not I want to add it to be displayed in the html code.

Can anyone help with the code for this?

Posted: Thu Jul 08, 2004 12:47 pm
by Joe
preg_match Should work im sure!