Skip to content

Instantly share code, notes, and snippets.

@yasinkuyu
Created October 21, 2016 09:39
Show Gist options
  • Save yasinkuyu/acf81011b69447ed9b7155645312a4a3 to your computer and use it in GitHub Desktop.
Save yasinkuyu/acf81011b69447ed9b7155645312a4a3 to your computer and use it in GitHub Desktop.
Regex domain remove extension
preg_split('/(?=\.[^.]+$)/', $_SERVER['HTTP_HOST']);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment