$link = str_replace("http://","",$link);
http://www.test.com/ => www.test.com/
but i also want to remove the / at the end of a link, if there IS one... how could i do that
$link = preg_replace("(/$)","",$link);