How to hide or display text and tags with PHP?
<p>I was wondering how would hide the text Location if the city state and country were not present and how would I let it display if any of the variables were present?</p>

<pre><code>&lt;p&gt;Location:
&lt;?php
 if (!empty($city))
     {
     echo $city .',';
     }

 if (!empty($state))
     {
     echo $state;
     }

 if (!empty($country))
     {
     echo ' ' . $country;
     }
?&gt;    
&lt;/p&gt;
</code></pre>
