title: convert html to json in PHP
body: <p>Im trying to do request in php but the answer is in HTML, how can i convert it in json ?</p>
  <p>case 'getzipcode':</p>
  <pre><code>$CITY= @$_POST['city'];
  
  $STREET= @$_POST['street'];
  
  $Q= &quot;https://www.israelpost.co.il/zip_data.nsf/SearchZip?OpenAgent&amp;Location=&quot;.$CITY.&quot;&amp;Street=&quot;.$STREET ;
  
  $results = file_get_contents($Q);
  
  $results= json_encode($results, JSON_UNESCAPED_UNICODE);
  
  print($results);
  </code></pre>
  <p>For the moment i got this :
  &quot;\n\n&lt;/head&gt;\n&lt;body text=&quot;#000000&quot;&gt;\nRES84623000\n&lt;/body&gt;\n&lt;/html&gt;\n&quot;</p>
  <p>thank you in advance,</p>