The function is called isValidURL and is displayed in it's simple glory below :) Here is some examples you can run to test the function. $v) { if(isValidURL($v)) { echo "URL is question: " . $v . "
"; echo "URL is valid!

"; } else { echo "URL is question: " . $v . "
"; echo "URL is invalid!

"; } } ?>