I have a table containing URLs.
Some of them have http:// in front and some have trailing /.
I need to strip both if iether of them present.
Here's the catch: some URLs may have directories:
http://www.domain.net/left/right/page.htm
So I guess I need to make sure that the slash is trailing?...
I think this is a good start but is no t enough:
$remove = array("http://", "/ ");
$cleanURL = str_replace($remove, "", $myURL);