Skip to content

Instantly share code, notes, and snippets.

@tayfunerbilen
Created April 4, 2016 10:34
Show Gist options
  • Save tayfunerbilen/e4997e306f1dd04a3e3f35f58d4bdfd6 to your computer and use it in GitHub Desktop.
Save tayfunerbilen/e4997e306f1dd04a3e3f35f58d4bdfd6 to your computer and use it in GitHub Desktop.
url'den domaini parse etmek için gerekli kodlar
<?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