I have a site that has different features but I do not want a feature to show if it does not have a variable assigned to it.
For example, my product has a featured list like this:
<h3>Specifications</h3>
<ul>
<li class="element element-text first">
<strong>Manufacturer: </strong><?php echo $manufactuer;?>
</li>
<li class="element element-text">
<strong>Model #: </strong><?php echo $model;?>
</li>
<li class="element element-text">
<strong>Previously Ran: </strong><?php echo $ran;?>
</li>
<li class="element element-text last">
</ul>
On the front end, I don't want the Model line displayed if that doesn't have a variable assigned to it.
isset()andempty().