title: Get URLs lowest path by domain
body: <p>I have an array that looks like the following...</p>
  
  <pre><code>$urls = array(
      "http://www.google.com",
      "http://www.google.com/maps",
      "http://www.google.com/mail",
      "https://drive.google.com/help",
      "https://www.youtube.com",
      "https://www.youtube.com/feed/subscriptions",
      "https://www.facebook.com/me",
      "https://www.facebook.com/me/friends"
  );
  </code></pre>
  
  <p>I find this hard to explain but I want to break this array down to only show the lowest path for each domain with no duplicates, so it looks like this...</p>
  
  <pre><code>$urls = array(
      "http://www.google.com",
      "https://drive.google.com/help",
      "https://www.youtube.com",
      "https://www.facebook.com/me"
  );
  </code></pre>