There is a variable in which values fall (addresses of sites). How to clear knowledge of a variable from unnecessary characters (http: //), if they were there, and also to display the message "the link contained http: //"
$link = "http://ru.stackoverflow.com/questions/ask"
strpos. Put a minus for the absolute unwillingness to understand the problem. - VenZellparse_urlto clear some extra characters from the value and also display a message about the content of these extra characters. aboutfilter_vargenerally keep quiet. Do not restrain yourself - write the answer - Alexey Shimansky