title: ipinfo.io filter AS#### out?
body: <p>I am using ipinfo.io for some simple lookups, but I have one little problem with <code>echo $details-&gt;org;</code> It outputs "<em>AS15169 Google Inc.</em>", but I want only the ISP part so "<em>Google Inc.</em>". </p>
  
  <p>Example code:</p>
  
  <pre><code>&lt;?
  function ip_details($ip) {
      $json = file_get_contents("http://ipinfo.io/{$ip}");
      $details = json_decode($json);
      return $details;
  }
  $details = ip_details($_SERVER['REMOTE_ADDR']);
  echo $details-&gt;org;
  ?&gt;
  </code></pre>
  
  <p>Example output: <a href="http://ipinfo.io/8.8.8.8/org" rel="nofollow">http://ipinfo.io/8.8.8.8/org</a></p>
  
  <p>Need some help, anyone?</p>