Created
April 4, 2016 10:34
-
-
Save tayfunerbilen/e4997e306f1dd04a3e3f35f58d4bdfd6 to your computer and use it in GitHub Desktop.
url'den domaini parse etmek için gerekli kodlar
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
<?php | |
$url = 'https://gist.github.com/what-ever'; | |
$domain = parse_url($url, PHP_URL_HOST); | |
echo $domain; // github.com |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment