Skip to content

Instantly share code, notes, and snippets.

@novasky-zz
Created August 18, 2015 17:24
Show Gist options
  • Save novasky-zz/1e346e4290d87e77e299 to your computer and use it in GitHub Desktop.
Save novasky-zz/1e346e4290d87e77e299 to your computer and use it in GitHub Desktop.
Remove o HTTP e o HTTPS de uma URL
echo preg_replace("$^http[s]?:\/\/$", "", $url);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment