title: How to get Country Area Code like India(+91) in php by API
body: <p>How to get Country Area Code like <code>India(+91)</code> in php by API</p>
  
  <p>could not find by this </p>
  
  <pre><code>$detailsId=json_decode(file_get_contents('http://ipinfo.io/'.$_SERVER['REMOTE_ADDR']));
  </code></pre>
  
  <hr>
  
  <p>I got fron this.</p>
  
  <pre><code> $idd=json_decode(file_get_contents('https://restcountries.eu/rest/v1/alpha?codes=IN'));
  </code></pre>