jeudi 6 juin 2019

Struggling with PHP statement

I have a php statement that if $pre_label equals 'POA' it display 'POA' otherwise it display something else.

What I need to do is add a option to say that if $pre_label equals 'POA' display 'POA' or if $pre_label equals 'Offers' display 'Offers' then do something else.

Hope this makes sense.

Thanks

$pre_label == 'POA' ? '<div class="poa">POA</div>' : $pre_label.'<div class="prop-single-price-search">'.show_price($price, $cursymbol, $curplace).' </div><div class="price-label">'.$plabel.'</div>';

Aucun commentaire:

Enregistrer un commentaire