title: Hide div based on country of user entering using PHP
body: <p>I get the ip address of the user who enters this way. No problem with these.</p>
  <pre><code>function getCountryData() {
      return unserialize(file_get_contents('http://www.geoplugin.net/php.gp?ip=' . get_ip()));;
  }
  
  function getCountry() {
      $languages = [
          'TR' =&gt; 'tr_TR',
          'EN' =&gt; 'en_US'
      ];
      $response = getCountryData();
  
      return array_key_exists($response['geoplugin_countryCode'], $languages) ? $languages[$response['geoplugin_countryCode']] : 'en_US';
  }
  </code></pre>
  <p>This is the normal part on the HTML side.</p>
  <pre><code>&lt;p class=&quot;d-none d-sm-inline-block&quot;&gt;&lt;span&gt;&lt;a href=&quot;tel:000000&quot;&gt;000000&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
  </code></pre>
  <p>I want to hide this part if the user entering TR is entering. I wrote something like this in this, where did I go wrong or how should I do it?</p>
  <pre><code>&lt;p class=&quot;d-none d-sm-inline-block&quot; style=&quot;&lt;?php if ($response['geoplugin_countryCode']) {echo 'display: none!important;';} else {echo 'display: inline-block!important;';} ?&gt;&quot;&gt;&lt;span&gt;&lt;a href=&quot;tel:000000&quot;&gt;000000&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
  </code></pre>