Created
October 21, 2016 09:39
-
-
Save yasinkuyu/acf81011b69447ed9b7155645312a4a3 to your computer and use it in GitHub Desktop.
Regex domain remove extension
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
preg_split('/(?=\.[^.]+$)/', $_SERVER['HTTP_HOST']); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment