prep_url($str = '')
Parameters: |
|
---|---|
Returns: |
Protocol-prefixed URL string |
Return type: |
string |
This function will add http:// in the event that a protocol prefix is missing from a URL.
Pass the URL string to the function like this:
$url = prep_url('example.com');
Please login to continue.