how to take hreaf into a variable nd give it to href="$vrable so" :  <?php if (!empty($this->highlitsrightside)) {   foreach ($this->highlitsrightside as $rightsidehlights){ if (!empty($rightsidehlights['highimage1']) || !empty($rightsidehlights['highimage2']) || !empty($rightsidehlights['highimage3']) || !empty($rightsidehlights['highimage4']) || !empty($rightsidehlights['highimage5'])) { ?>
           <?php $hrf1 = "www.google.com"; ?>

              <?php } else { $hrf1 = '#';} ?>
          <?php if (!empty($rightsidehlights['icontext'])) {?>

            <a class="off_clr_text link_chn_lo" href="$hrf1" data-options="" tabindex="0"><i class="<?php echo $rightsidehlights['icontext']; ?>" ></i> <?php echo $rightsidehlights['highlightname']; ?></a>
            <?php  } else {?> 

            <a class="off_clr_text link_chn_lo" href="$hrf1" data-options="" tabindex="0"> <img style=" display: inline-block;" src="<?php echo UPLOADS . 'images/highlights_icon/' . $rightsidehlights['highlighticon'] ?>"width="30" height="16"  ></span></i> <?php echo $rightsidehlights['highlightname']; ?></a>
         
            <?php } }?>            
            