/ Published in: PHP
this function processes a URL that 'should' be a full url (i.e. http://something.com/dfsdfs/) and makes sure it contains http:// for easy inclusion as a link into a href attribute
Expand |
Embed | Plain Text
// this function processes a URL that 'should' be a full url (http://something.com/dfsdfs/) // and makes sure it contains the correct format to be included into a href attribute function processURLString($urlString) { if($urlString) { $urlString = 'http://'.$urlString; } return $urlString; }
You need to login to post a comment.
